mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
free_parse_tree: clear the nss pointer when freeing.
This commit is contained in:
parent
a712af5a26
commit
1b9fb405a3
@ -3974,6 +3974,7 @@ free_parse_tree(struct sudoers_parse_tree *parse_tree)
|
||||
if (parse_tree->shost != parse_tree->lhost)
|
||||
free(parse_tree->shost);
|
||||
parse_tree->lhost = parse_tree->shost = NULL;
|
||||
parse_tree->nss = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1791,6 +1791,7 @@ free_parse_tree(struct sudoers_parse_tree *parse_tree)
|
||||
if (parse_tree->shost != parse_tree->lhost)
|
||||
free(parse_tree->shost);
|
||||
parse_tree->lhost = parse_tree->shost = NULL;
|
||||
parse_tree->nss = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user