Revision
17488
Author
anthm
Date
2010-05-05 11:01:32 -0500 (Wed, 05 May 2010)

Log Message

fix null pointer deref code path

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_skinny/mod_skinny.c (17487 => 17488)


--- freeswitch/trunk/src/mod/endpoints/mod_skinny/mod_skinny.c	2010-05-05 15:56:10 UTC (rev 17487)
+++ freeswitch/trunk/src/mod/endpoints/mod_skinny/mod_skinny.c	2010-05-05 16:01:32 UTC (rev 17488)
@@ -943,9 +943,12 @@
 	if (nsession) {
 		switch_core_session_destroy(&nsession);
 	}
-	*pool = NULL;
 
+	if (pool) {
+		*pool = NULL;
+	}
 
+
   done:
 
 	if (profile) {