Revision
15380
Author
rupa
Date
2009-11-06 02:45:58 -0600 (Fri, 06 Nov 2009)

Log Message

some cases the cid is set back to NULL, alloc a new one if needed

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c (15379 => 15380)


--- freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c	2009-11-06 07:44:18 UTC (rev 15379)
+++ freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c	2009-11-06 08:45:58 UTC (rev 15380)
@@ -563,7 +563,11 @@
 		}
 	}
 	
-done:	
+done:
+	if (!cid) {
+		cid = switch_core_alloc(pool, sizeof(cid_data_t));
+		switch_assert(cid);
+	}
 	/* append area if we can */
 	if (!cid->area &&
 		!skipcitystate &&