commit | 3bd9f9976e4f1492fdc658ebdc5d368a5ddbdd5f | [log] [tgz] |
---|---|---|
author | Thomas Klausner <tk@giga.or.at> | Wed Jan 18 20:50:06 2017 +0100 |
committer | Thomas Klausner <tk@giga.or.at> | Wed Jan 18 20:50:06 2017 +0100 |
tree | 8f2f7bd7f097692a23b102f1873e6717ead01d85 | |
parent | add18ea20b7ace14e040d2641d049f7d6a1d2ab3 [diff] [blame] |
Fix error for unknown encryption.
diff --git a/lib/zip_file_set_encryption.c b/lib/zip_file_set_encryption.c index 06a25a9..b9312b4 100644 --- a/lib/zip_file_set_encryption.c +++ b/lib/zip_file_set_encryption.c
@@ -54,7 +54,7 @@ } if (_zip_get_encryption_implementation(method, ZIP_CODEC_ENCODE) == NULL) { - zip_error_set(&za->error, ZIP_ER_COMPNOTSUPP, 0); + zip_error_set(&za->error, ZIP_ER_ENCRNOTSUPP, 0); return -1; }