Skip to content
Snippets Groups Projects
Commit cb833852 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

libzscanner: fix 'applying zero offset to null pointer'

parent ca305aa1
No related branches found
No related tags found
1 merge request!1238SVCB/HTTPS rrtype support
......@@ -339,7 +339,7 @@ int zs_set_input_file(
// Set the scanner input limits.
s->input.start = start;
s->input.current = start;
s->input.end = start + size;
s->input.end = (start != NULL) ? start + size : start;
// Get absolute path of the zone file if possible.
char *full_name = realpath(file_name, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment