forked from Mirrors/freeswitch
[mod_sofia] Fix potential memory leak in sofia_reg_handle_sip_r_challenge()
This commit is contained in:
parent
56b6e954cf
commit
01844013a0
@ -2810,9 +2810,11 @@ void sofia_reg_handle_sip_r_challenge(int status,
|
||||
const char *val = switch_xml_attr_soft(x_param, "value");
|
||||
|
||||
if (!strcasecmp(var, "reverse-auth-user")) {
|
||||
switch_safe_free(dup_user);
|
||||
dup_user = strdup(val);
|
||||
sip_auth_username = dup_user;
|
||||
} else if (!strcasecmp(var, "reverse-auth-pass")) {
|
||||
switch_safe_free(dup_pass);
|
||||
dup_pass = strdup(val);
|
||||
sip_auth_password = dup_pass;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user