mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 16:50:14 +00:00
Merge "res_pjsip_registrar.c: Prevent possible buffer overflow with domain aliases" into 17
This commit is contained in:
@@ -975,7 +975,7 @@ static char *find_aor_name(const char *username, const char *domain, const char
|
|||||||
if (alias) {
|
if (alias) {
|
||||||
char *id_domain_alias = ast_alloca(strlen(username) + strlen(alias->domain) + 2);
|
char *id_domain_alias = ast_alloca(strlen(username) + strlen(alias->domain) + 2);
|
||||||
|
|
||||||
sprintf(id_domain, "%s@%s", username, alias->domain);
|
sprintf(id_domain_alias, "%s@%s", username, alias->domain);
|
||||||
ao2_cleanup(alias);
|
ao2_cleanup(alias);
|
||||||
|
|
||||||
configured_aors = strcpy(aors_buf, aors);/* Safe */
|
configured_aors = strcpy(aors_buf, aors);/* Safe */
|
||||||
|
|||||||
Reference in New Issue
Block a user