]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
seg--
authorRaymond Chandler <intralanman@gmail.com>
Fri, 20 Jan 2012 19:52:56 +0000 (14:52 -0500)
committerRaymond Chandler <intralanman@gmail.com>
Fri, 20 Jan 2012 19:52:56 +0000 (14:52 -0500)
src/switch_event.c

index f17ec08e5cfd3c65dfe2e39eb3483d5fae9ae2d1..7e8a8676ba5e0c61b249aecc89c5cbe8f7419e1d 100644 (file)
@@ -2344,7 +2344,13 @@ SWITCH_DECLARE(int) switch_event_check_permission_list(switch_event_t *list, con
 {
        const char *v;
        int r = 0;
-       int default_allow = switch_test_flag(list, EF_DEFAULT_ALLOW);
+       int default_allow = 0;
+
+       if (!list) {
+               return 1;
+       }
+
+       default_allow = switch_test_flag(list, EF_DEFAULT_ALLOW);
 
        if (!list->headers) {
                return default_allow;