mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't assume *lasthook is initialized in ng_path2node().
This commit is contained in:
parent
9078405886
commit
1bdebe4d45
1 changed files with 2 additions and 2 deletions
|
|
@ -1113,8 +1113,8 @@ ng_path2node(node_p here, const char *address, node_p *destp, char **rtnp,
|
|||
|
||||
/* Done */
|
||||
*destp = node;
|
||||
if (lasthook && hook)
|
||||
*lasthook = hook->peer;
|
||||
if (lasthook != NULL)
|
||||
*lasthook = hook ? hook->peer : NULL;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue