Don't close fp in sudoers_parse_ldif()

The caller should be the one to handle this.
This commit is contained in:
Todd C. Miller
2021-02-02 15:06:38 -07:00
parent 68939adee2
commit aaa2e8ddec
2 changed files with 9 additions and 7 deletions

View File

@@ -775,8 +775,5 @@ sudoers_parse_ldif(struct sudoers_parse_tree *parse_tree,
rbdestroy(groupcache, str_list_free);
rbdestroy(hostcache, str_list_free);
if (fp != stdin)
fclose(fp);
debug_return_bool(errors == 0);
}