diff options
Diffstat (limited to 'ufilter.c')
| -rw-r--r-- | ufilter.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -31,6 +31,7 @@ | |||
| 31 | #include "php_variables.h" | 31 | #include "php_variables.h" |
| 32 | #include "suhosin_rfc1867.h" | 32 | #include "suhosin_rfc1867.h" |
| 33 | 33 | ||
| 34 | PHP_SUHOSIN_API int (*old_rfc1867_callback)(unsigned int event, void *event_data, void **extra TSRMLS_DC) = NULL; | ||
| 34 | #if !HAVE_RFC1867_CALLBACK | 35 | #if !HAVE_RFC1867_CALLBACK |
| 35 | PHP_SUHOSIN_API int (*php_rfc1867_callback)(unsigned int event, void *event_data, void **extra TSRMLS_DC) = NULL; | 36 | PHP_SUHOSIN_API int (*php_rfc1867_callback)(unsigned int event, void *event_data, void **extra TSRMLS_DC) = NULL; |
| 36 | #endif | 37 | #endif |
| @@ -345,8 +346,8 @@ int suhosin_rfc1867_filter(unsigned int event, void *event_data, void **extra TS | |||
| 345 | } | 346 | } |
| 346 | continue_with_next: | 347 | continue_with_next: |
| 347 | #if HAVE_RFC1867_CALLBACK | 348 | #if HAVE_RFC1867_CALLBACK |
| 348 | if (php_rfc1867_callback != NULL) { | 349 | if (old_rfc1867_callback != NULL) { |
| 349 | return php_rfc1867_callback(event, event_data, extra TSRMLS_CC); | 350 | return old_rfc1867_callback(event, event_data, extra TSRMLS_CC); |
| 350 | } | 351 | } |
| 351 | #endif | 352 | #endif |
| 352 | return SUCCESS; | 353 | return SUCCESS; |
