From a7056933546265d28723c2c6f7fe21829b2a42a2 Mon Sep 17 00:00:00 2001
From: Anthony Minessale <anthony.minessale@gmail.com>
Date: Fri, 26 Feb 2010 20:57:37 +0000
Subject: [PATCH] doh

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16841 d0543943-73ff-0310-b7d9-9358b9ac24b2
---
 src/mod/endpoints/mod_sofia/sofia_reg.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c
index 73cd3c1ce2..d9bfb0627b 100644
--- a/src/mod/endpoints/mod_sofia/sofia_reg.c
+++ b/src/mod/endpoints/mod_sofia/sofia_reg.c
@@ -235,7 +235,6 @@ void sofia_reg_check_gateway(sofia_profile_t *profile, time_t now)
 			
 			pkey = switch_mprintf("%s::%s", profile->name, gateway_ptr->name);
 
-			switch_snprintf(pkey, sizeof(pkey), "%s::%s", profile->name, gateway_ptr->name);
 			switch_core_hash_delete(mod_sofia_globals.gateway_hash, pkey);
 			switch_core_hash_delete(mod_sofia_globals.gateway_hash, gateway_ptr->name);