diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/restore.c | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/src/restore.c b/src/restore.c index 2280095..49c487d 100644 --- a/src/restore.c +++ b/src/restore.c @@ -1208,12 +1208,15 @@ static int restore_sign_bbfw(const char* bbfwtmp, plist_t bbtss, const char* bb_  	}  	// this will write out the modified zip -	zip_close(za); +	if (zip_close(za) == -1) { +		error("ERROR: could not close and write modified archive: %s\n", zip_strerror(za)); +		res = -1; +	} else { +		res = 0; +	}  	za = NULL;  	zs = NULL; -	res = 0; -  leave:  	if (mbn) {  		mbn_free(mbn); | 
