From: Anthony Minessale Date: Wed, 5 May 2010 16:01:32 +0000 (-0500) Subject: fix null pointer deref code path X-Git-Tag: git2svn-syncpoint-master~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5f7461ee29fa10c0cedb52ec093e400057eed2f;p=thirdparty%2Ffreeswitch.git fix null pointer deref code path --- diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index 5b780d3700..411a3aa8d5 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -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: