commit | 3aac9a7d9e0c828ae6052a87c168dd2748c4da2f | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Tue Dec 01 12:24:26 2020 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Dec 02 12:20:04 2020 +0100 |
tree | e0241008d0cb03f7554386bc12c9b34f8ea77185 | |
parent | 6a9cb0f487860384f37cfe0a38befd5a9b53a69a [diff] [blame] |
schema BUGFIX dereferencing possible NULL pointers
diff --git a/src/schema_compile.c b/src/schema_compile.c index 17f3158..f0206d0 100644 --- a/src/schema_compile.c +++ b/src/schema_compile.c
@@ -364,7 +364,7 @@ if (!ctx_sc) { context.ctx = ctx; - context.cur_mod = parsed_mod->mod; + context.cur_mod = parsed_mod ? parsed_mod->mod : NULL; context.pmod = parsed_mod; context.path_len = 1; context.path[0] = '/';