Don't assume *lasthook is initialized in ng_path2node().

This commit is contained in:
archie 2000-05-02 17:09:46 +00:00
parent 4955e8ae95
commit 022b0d5f39

View File

@ -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);
}