commit | 85d9edc7de1fea04acf640a5d22070d79b8330bb | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Apr 22 09:15:05 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Apr 22 09:15:05 2021 +0200 |
tree | daff7a0cb57759124811ff4bc88b73455aac3ac9 | |
parent | e7a1daf09ba990d4cc44ccbfac44cc11a2aa1169 [diff] [blame] |
lyb parser BUGFIX NULL dereference
diff --git a/src/parser_lyb.c b/src/parser_lyb.c index b011d8a..070c9c3 100644 --- a/src/parser_lyb.c +++ b/src/parser_lyb.c
@@ -330,8 +330,10 @@ } - /* fill cached hashes, if not already */ - lyb_cache_module_hash(*mod); + if (*mod) { + /* fill cached hashes, if not already */ + lyb_cache_module_hash(*mod); + } cleanup: free(mod_name);