aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ral
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2005-07-07 02:55:04 +0000
committerSam Leffler <sam@FreeBSD.org>2005-07-07 02:55:04 +0000
commit82145663e31a28b8938739411439105da516142f (patch)
treec1b7d951e4616bcb565679b8737c31495aa556d5 /sys/dev/ral
parent8225bf4c363714b48c114be564728a479c727abc (diff)
Notes
Diffstat (limited to 'sys/dev/ral')
-rw-r--r--sys/dev/ral/if_ral.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ral/if_ral.c b/sys/dev/ral/if_ral.c
index 9e6cf74b53ae..9877a3dceb70 100644
--- a/sys/dev/ral/if_ral.c
+++ b/sys/dev/ral/if_ral.c
@@ -1900,8 +1900,10 @@ ral_tx_data(struct ral_softc *sc, struct mbuf *m0, struct ieee80211_node *ni)
if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
k = ieee80211_crypto_encap(ic, ni, m0);
- if (k == NULL)
+ if (k == NULL) {
+ m_freem(m0);
return ENOBUFS;
+ }
/* packet header may have moved, reset our local pointer */
wh = mtod(m0, struct ieee80211_frame *);