From 2e1f0b50a827074b20ca02f502982c753d5cb054 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Thu, 16 Jun 2011 17:09:26 -0500 Subject: [PATCH] FS-3350 try this --- src/mod/applications/mod_cidlookup/mod_cidlookup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_cidlookup/mod_cidlookup.c b/src/mod/applications/mod_cidlookup/mod_cidlookup.c index 64e5fc7520..ba69f6fb6b 100755 --- a/src/mod/applications/mod_cidlookup/mod_cidlookup.c +++ b/src/mod/applications/mod_cidlookup/mod_cidlookup.c @@ -554,6 +554,7 @@ static cid_data_t *do_lookup(switch_memory_pool_t *pool, switch_event_t *event, char *name = NULL; char *url_query = NULL; cid_data_t *cid = NULL; + cid_data_t *cidtmp = NULL; switch_bool_t save_cache = SWITCH_FALSE; cid = switch_core_alloc(pool, sizeof(cid_data_t)); @@ -573,8 +574,9 @@ static cid_data_t *do_lookup(switch_memory_pool_t *pool, switch_event_t *event, } if (globals.cache) { - cid = check_cache(pool, number); - if (cid) { + cidtmp = check_cache(pool, number); + if (cidtmp) { + cid = cidtmp; cid->src = switch_core_sprintf(pool, "%s (cache)", cid->src); goto done; }