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:
Rui Paulo 2010-06-01 14:13:59 +00:00
parent 525065ba9b
commit db30953482
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208696

View File

@ -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.