Merge pull request #531 from Shchelk/ptpaf

Fix: passed to proc after free
This commit is contained in:
Wouter Wijngaards 2021-08-20 15:15:41 +02:00 committed by GitHub
commit 1ae42b94b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -397,10 +397,10 @@ read_root_hints(struct iter_hints* hints, char* fname)
delegpt_free_mlc(dp);
return 1;
}
delegpt_log(VERB_QUERY, dp);
if(!hints_insert(hints, c, dp, 0)) {
return 0;
}
delegpt_log(VERB_QUERY, dp);
return 1;
stop_read: