Don't assume *lasthook is initialized in ng_path2node().
This commit is contained in:
parent
4955e8ae95
commit
022b0d5f39
@ -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…
x
Reference in New Issue
Block a user