mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Fix use after free in error message when a duplicate alias exists.
This commit is contained in:
@@ -121,8 +121,8 @@ alias_add(name, type, members)
|
||||
a->seqno = 0;
|
||||
list2tq(&a->members, members);
|
||||
if (rbinsert(aliases, a)) {
|
||||
alias_free(a);
|
||||
snprintf(errbuf, sizeof(errbuf), "Alias `%s' already defined", name);
|
||||
alias_free(a);
|
||||
return(errbuf);
|
||||
}
|
||||
return(NULL);
|
||||
|
Reference in New Issue
Block a user