diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-06-01 14:13:59 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-06-01 14:13:59 +0000 |
commit | 9e7e3d48a97a096d91e4925b214e3b6378864e57 (patch) | |
tree | c9ffd2ffe90eb4e363471f00cf24934a0759fdbc /sys/net80211/ieee80211_hwmp.c | |
parent | 6ae6854355af3fb8b1ce7d33e29163f9d63a387f (diff) | |
download | FreeBSD-src-9e7e3d48a97a096d91e4925b214e3b6378864e57.zip FreeBSD-src-9e7e3d48a97a096d91e4925b214e3b6378864e57.tar.gz |
Don't reference null pointer in hwmp_recv_preq().
Found with: Coverity Prevent(tm)
CID: 3912
MFC after: 3 days
Diffstat (limited to 'sys/net80211/ieee80211_hwmp.c')
-rw-r--r-- | sys/net80211/ieee80211_hwmp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_hwmp.c b/sys/net80211/ieee80211_hwmp.c index 66055d7..1fffc9f 100644 --- a/sys/net80211/ieee80211_hwmp.c +++ b/sys/net80211/ieee80211_hwmp.c @@ -707,6 +707,9 @@ hwmp_recv_preq(struct ieee80211vap *vap, struct ieee80211_node *ni, rtorig = ieee80211_mesh_rt_find(vap, preq->preq_origaddr); if (rtorig == NULL) rtorig = ieee80211_mesh_rt_add(vap, preq->preq_origaddr); + if (rtorig == NULL) + /* XXX stat */ + return; hrorig = IEEE80211_MESH_ROUTE_PRIV(rtorig, struct ieee80211_hwmp_route); /* * Sequence number validation. |