mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-11-22 06:27:08 +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
2
gnupg.c
2
gnupg.c
|
@ -1392,7 +1392,7 @@ 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);
|
||||
|
|
|
@ -116,10 +116,10 @@ http://pear.php.net/dtd/package-2.0.xsd">
|
|||
<api>1.3.4</api>
|
||||
</version>
|
||||
<stability>
|
||||
<release>stable</release>
|
||||
<api>stable</api>
|
||||
<release>beta</release>
|
||||
<api>beta</api>
|
||||
</stability>
|
||||
<date>2013-XX-XX</date>
|
||||
<date>2013-12-31</date>
|
||||
<license>BSD, revised</license>
|
||||
<notes>XXX
|
||||
</notes>
|
||||
|
|
Loading…
Reference in a new issue