From 54a122090034e9905313e471aa06f6133032f8cf Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Wed, 9 Sep 2015 11:28:12 +0000 Subject: [PATCH] Bug #70432 segfault on import function --- gnupg.c | 4 ++-- package.xml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gnupg.c b/gnupg.c index fdc82a5..f7a4c27 100644 --- a/gnupg.c +++ b/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); diff --git a/package.xml b/package.xml index 2b39d09..536e9d5 100644 --- a/package.xml +++ b/package.xml @@ -116,10 +116,10 @@ http://pear.php.net/dtd/package-2.0.xsd"> 1.3.4 - stable - stable + beta + beta - 2013-XX-XX + 2013-12-31 BSD, revised XXX