Skip to content
Snippets Groups Projects
Commit e99cdeef authored by Friendly Automation's avatar Friendly Automation Committed by Gerrit Code Review
Browse files

Merge "res_pjsip_registrar.c: Prevent possible buffer overflow with domain aliases"

parents fd00a2bd 0183e2bc
Branches
Tags
No related merge requests found
...@@ -975,7 +975,7 @@ static char *find_aor_name(const char *username, const char *domain, const char ...@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment