Don't reference null pointer in hwmp_recv_preq().
Found with: Coverity Prevent(tm) CID: 3912 MFC after: 3 days
This commit is contained in:
parent
6ae6854355
commit
9e7e3d48a9
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user