mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-11-22 22:37:10 +00:00
fixed segfault during import, when keyring is not writeable
This commit is contained in:
parent
61bfa5b8d2
commit
d0ae5002f1
1 changed files with 3 additions and 1 deletions
2
gnupg.c
2
gnupg.c
|
@ -1354,7 +1354,9 @@ PHP_FUNCTION(gnupg_import){
|
||||||
add_assoc_long (return_value, "secretunchanged", result->secret_unchanged);
|
add_assoc_long (return_value, "secretunchanged", result->secret_unchanged);
|
||||||
add_assoc_long (return_value, "newsignatures", result->new_signatures);
|
add_assoc_long (return_value, "newsignatures", result->new_signatures);
|
||||||
add_assoc_long (return_value, "skippedkeys", result->skipped_new_keys);
|
add_assoc_long (return_value, "skippedkeys", result->skipped_new_keys);
|
||||||
|
if(result->imports && result->imports->fpr){
|
||||||
add_assoc_string (return_value, "fingerprint", result->imports->fpr, 1);
|
add_assoc_string (return_value, "fingerprint", result->imports->fpr, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue