]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix null pointer deref code path
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 5 May 2010 16:01:32 +0000 (11:01 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 5 May 2010 16:01:32 +0000 (11:01 -0500)
src/mod/endpoints/mod_skinny/mod_skinny.c

index 5b780d37008563d361e4599854a026a1b9bfc327..411a3aa8d5c29cb1c082068893361b65587505cb 100644 (file)
@@ -943,7 +943,10 @@ switch_call_cause_t channel_outgoing_channel(switch_core_session_t *session, swi
        if (nsession) {
                switch_core_session_destroy(&nsession);
        }
-       *pool = NULL;
+
+       if (pool) {
+               *pool = NULL;
+       }
 
 
   done: