From e43317f14c3d18fb539b46936a93391770405135 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 8 Apr 2008 15:36:58 +0000 Subject: [PATCH] avoiding issuelock git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8057 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_reg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 38d5d5c27a..99694bb4c1 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -339,7 +339,9 @@ void sofia_reg_auth_challange(nua_t *nua, sofia_profile_t *profile, nua_handle_t sql = switch_mprintf("insert into sip_authentication (nonce, expires) values('%q', %ld)", uuid_str, switch_timestamp(NULL) + profile->nonce_ttl); switch_assert(sql != NULL); - sofia_glue_execute_sql(profile, &sql, SWITCH_TRUE); + sofia_glue_actually_execute_sql(profile, SWITCH_FALSE, sql, NULL); + switch_safe_free(sql); + //sofia_glue_execute_sql(profile, &sql, SWITCH_TRUE); auth_str = switch_mprintf("Digest realm=\"%q\", nonce=\"%q\",%s algorithm=MD5, qop=\"auth\"", realm, uuid_str, stale ? " stale=\"true\"," : "");