From a5f7461ee29fa10c0cedb52ec093e400057eed2f Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 5 May 2010 11:01:32 -0500 Subject: [PATCH] fix null pointer deref code path --- src/mod/endpoints/mod_skinny/mod_skinny.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: