Index: es_title.c =================================================================== RCS file: /home/products/cvstree/sw_c/common/os/es/es_title.c,v retrieving revision 1.131.6.3 retrieving revision 1.131.6.5 diff -r1.131.6.3 -r1.131.6.5 396a397 > static ESError __esCleanUpIncompleteImport(ESTitleMeta* ); 409a411,427 > /* Clean up any incomplete import under /import for specified title ID */ > rv = __esCleanUpIncompleteImport((ESTitleMeta*)tmd); > if (rv!=ES_ERR_OK) { > if (rv==ISFS_ERROR_NOEXISTS) { > esPrint(ES_DEBUG_INFO, "nothing to clean up /import for title" > " 0x%llx, rv=%d -> OK\n", > ntohll(((ESTitleMeta*)tmd)->head.titleId), rv); > } > else { > esPrint(ES_DEBUG_ERROR, "failed to clean up /import for title" > " 0x%llx, rv=%d\n", > ntohll(((ESTitleMeta*)tmd)->head.titleId), rv); > /* To be backward compatible, we continue instead of quitting */ > // goto out; > } > } > 1111,1112c1129,1130 < ESError < esImportTitleCancel(ESTitleCtx* titleCtx) --- > static ESError > __esCleanUpIncompleteImport(ESTitleMeta* pTmdMain) 1126,1127d1143 < ES_ENTRY(); < 1129c1145 < if (titleCtx==NULL || titleCtx->fd>=0 || titleCtx->pTmd==NULL) { --- > if (pTmdMain==NULL) { 1133,1135d1148 < if (!titleCtx->valid) { < goto out; < } 1145c1158 < tid = ntohll((titleCtx->pTmd)->head.titleId); --- > tid = ntohll(pTmdMain->head.titleId); 1201a1215,1236 > return rv; > } > > ESError > esImportTitleCancel(ESTitleCtx* titleCtx) > { > ESError rv = ES_ERR_OK; > > ES_ENTRY(); > > /* sanity check */ > if (titleCtx==NULL || titleCtx->fd>=0 || titleCtx->pTmd==NULL) { > rv = ES_ERR_INVALID; > goto out; > } > if (!titleCtx->valid) { > goto out; > } > > rv = __esCleanUpIncompleteImport(titleCtx->pTmd); > > out: 3167c3202 < if (iv==NULL || input==NULL || output==NULL) { --- > if (iv==NULL || input==NULL || output==NULL || keyHandle!=IOSC_APP_ENC_HANDLE) { 3185c3220 < if (iv==NULL || input==NULL || output==NULL) { --- > if (iv==NULL || input==NULL || output==NULL || keyHandle!=IOSC_APP_ENC_HANDLE) {