diff options
| author | Ben Fuhrmannek | 2014-11-24 15:26:50 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2014-11-24 15:26:50 +0100 |
| commit | 0fa87e1ab1697cb3b39e3a5663f97dc15cf8d98f (patch) | |
| tree | a8924229d3c1409f5fe98c367254252596f2b7e0 | |
| parent | 630f04fe2f9e9577c98d9bb8cc06e589d03a969b (diff) | |
extra null check for old startup handler. (#70)
| -rw-r--r-- | suhosin.c | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -211,7 +211,7 @@ static void suhosin_shutdown(zend_extension *extension) | |||
| 211 | 211 | ||
| 212 | static int suhosin_startup_wrapper(zend_extension *ext) | 212 | static 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; |
