mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-02-04 13:21:34 +00:00
Bug #70432 segfault on import function
This commit is contained in:
parent
18792c4a05
commit
54a1220900
2 changed files with 5 additions and 5 deletions
4
gnupg.c
4
gnupg.c
|
|
@ -1391,8 +1391,8 @@ PHP_FUNCTION(gnupg_import){
|
|||
}
|
||||
gpgme_data_release(in);
|
||||
result = gpgme_op_import_result (intern->ctx);
|
||||
|
||||
if(result->imports->result != GPG_ERR_NO_ERROR){
|
||||
|
||||
if(!result || !result->imports || result->imports->result != GPG_ERR_NO_ERROR){
|
||||
RETURN_FALSE;
|
||||
}
|
||||
array_init (return_value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue