Don't close fp in sudoers_parse_ldif()
The caller should be the one to handle this.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user