mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Do not dereference NULL pointer. refobj is NULL for the objects that are
preloaded. Reported and tested by: ed
This commit is contained in:
parent
24cd37102c
commit
4d59cc85e8
1 changed files with 1 additions and 1 deletions
|
|
@ -1125,7 +1125,7 @@ find_library(const char *xname, const Obj_Entry *refobj)
|
|||
xname);
|
||||
return NULL;
|
||||
}
|
||||
if (refobj->z_origin)
|
||||
if (refobj != NULL && refobj->z_origin)
|
||||
return origin_subst(xname, refobj->origin_path);
|
||||
else
|
||||
return xstrdup(xname);
|
||||
|
|
|
|||
Loading…
Reference in a new issue