diff options
author | archie <archie@FreeBSD.org> | 2000-05-02 17:09:46 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2000-05-02 17:09:46 +0000 |
commit | 022b0d5f39ddf3897ef891d0e8d0c4928af03af1 (patch) | |
tree | 0bf5fa87654d85be01c3496edd6f0acd724062e8 | |
parent | 4955e8ae95d45a364c32ba6ae80fb915dd9fe5fe (diff) | |
download | FreeBSD-src-022b0d5f39ddf3897ef891d0e8d0c4928af03af1.zip FreeBSD-src-022b0d5f39ddf3897ef891d0e8d0c4928af03af1.tar.gz |
Don't assume *lasthook is initialized in ng_path2node().
-rw-r--r-- | sys/netgraph/ng_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index c47273a..1c0d80e 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -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); } |