summaryrefslogtreecommitdiff
path: root/suhosin.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2014-11-24 15:26:50 +0100
committerBen Fuhrmannek2014-11-24 15:26:50 +0100
commit0fa87e1ab1697cb3b39e3a5663f97dc15cf8d98f (patch)
treea8924229d3c1409f5fe98c367254252596f2b7e0 /suhosin.c
parent630f04fe2f9e9577c98d9bb8cc06e589d03a969b (diff)
extra null check for old startup handler. (#70)
Diffstat (limited to 'suhosin.c')
-rw-r--r--suhosin.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/suhosin.c b/suhosin.c
index b186fbb..8ce279d 100644
--- a/suhosin.c
+++ b/suhosin.c
@@ -211,7 +211,7 @@ static void suhosin_shutdown(zend_extension *extension)
211 211
212static int suhosin_startup_wrapper(zend_extension *ext) 212static int suhosin_startup_wrapper(zend_extension *ext)
213{ 213{
214 int res; 214 int res = SUCCESS;
215 zend_extension *ex = &suhosin_zend_extension_entry; 215 zend_extension *ex = &suhosin_zend_extension_entry;
216 char *new_info; 216 char *new_info;
217 int new_info_length; 217 int new_info_length;
@@ -244,7 +244,9 @@ static int suhosin_startup_wrapper(zend_extension *ext)
244 ze->op_array_dtor = stealth_op_array_dtor; 244 ze->op_array_dtor = stealth_op_array_dtor;
245 /*}*/ 245 /*}*/
246 246
247 res = old_startup(ext); 247 if (old_startup != NULL) {
248 res = old_startup(ext);
249 }
248 250
249/* ex->name = NULL; 251/* ex->name = NULL;
250 ex->author = NULL; 252 ex->author = NULL;