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);