Patch diff for gnupg Bug #65342
Patch version 2013-07-26 08:17 UTC
Return to Bug #65342 |
Download this patch
Patch Revisions:
Developer: w00ty@tormail.org
diff --git a/a/gnupg.c b/b/gnupg.c
index d8b89d7..a52cbe2 100644
--- a/a/gnupg.c
+++ b/b/gnupg.c
@@ -1389,7 +1389,10 @@ PHP_FUNCTION(gnupg_import){
}
gpgme_data_release(in);
result = gpgme_op_import_result (intern->ctx);
-
+
+ if( result->imports->result ){
+ RETURN_FALSE();
+ }
array_init (return_value);
add_assoc_long (return_value, "imported", result->imported);
add_assoc_long (return_value, "unchanged", result->unchanged);
|