summaryrefslogtreecommitdiff
path: root/ufilter.c
diff options
context:
space:
mode:
Diffstat (limited to 'ufilter.c')
-rw-r--r--ufilter.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ufilter.c b/ufilter.c
index 5e23ff9..6584617 100644
--- a/ufilter.c
+++ b/ufilter.c
@@ -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
34PHP_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
35PHP_SUHOSIN_API int (*php_rfc1867_callback)(unsigned int event, void *event_data, void **extra TSRMLS_DC) = NULL; 36PHP_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 }
346continue_with_next: 347continue_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;