Date: Tue, 1 Jun 2010 14:14:00 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r208696 - head/sys/net80211 Message-ID: <201006011414.o51EE0v4053525@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rpaulo Date: Tue Jun 1 14:13:59 2010 New Revision: 208696 URL: http://svn.freebsd.org/changeset/base/208696 Log: Don't reference null pointer in hwmp_recv_preq(). Found with: Coverity Prevent(tm) CID: 3912 MFC after: 3 days Modified: head/sys/net80211/ieee80211_hwmp.c Modified: head/sys/net80211/ieee80211_hwmp.c ============================================================================== --- head/sys/net80211/ieee80211_hwmp.c Tue Jun 1 14:09:35 2010 (r208695) +++ head/sys/net80211/ieee80211_hwmp.c Tue Jun 1 14:13:59 2010 (r208696) @@ -707,6 +707,9 @@ hwmp_recv_preq(struct ieee80211vap *vap, 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006011414.o51EE0v4053525>