summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sp_disabled_functions.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c
index 933b9af..8396cae 100644
--- a/src/sp_disabled_functions.c
+++ b/src/sp_disabled_functions.c
@@ -45,7 +45,7 @@ static bool is_functions_list_matching(zend_execute_data* execute_data,
45 45
46 char* complete_path_function = get_complete_function_path(current); 46 char* complete_path_function = get_complete_function_path(current);
47 if (!complete_path_function) { 47 if (!complete_path_function) {
48 goto end; 48 break;
49 } 49 }
50 int match = strcmp(((char*)it->data), complete_path_function); 50 int match = strcmp(((char*)it->data), complete_path_function);
51 efree(complete_path_function); 51 efree(complete_path_function);
@@ -54,11 +54,10 @@ static bool is_functions_list_matching(zend_execute_data* execute_data,
54 it = it->next; 54 it = it->next;
55 current = current->prev_execute_data; 55 current = current->prev_execute_data;
56 } else { 56 } else {
57 goto end; 57 break;
58 } 58 }
59 } 59 }
60 60
61end:
62 EG(current_execute_data) = orig_execute_data; 61 EG(current_execute_data) = orig_execute_data;
63 return false; 62 return false;
64} 63}