diff options
author | 2002-06-07 18:32:51 +0000 | |
---|---|---|
committer | 2002-06-07 18:32:51 +0000 | |
commit | 2738ce994650f1083421ce9017a1789e4b65ca10 (patch) | |
tree | 7235ea7996ec4241f10633d3f85e572162cb47cd | |
parent | Remove an unused variable. (diff) | |
download | wireguard-openbsd-2738ce994650f1083421ce9017a1789e4b65ca10.tar.xz wireguard-openbsd-2738ce994650f1083421ce9017a1789e4b65ca10.zip |
Don't try to send a packet we don't have if rl_encap fails.
Tested by noone, the bug reporter didn't respond. could fix kernel/2731
-rw-r--r-- | sys/dev/ic/rtl81x9.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c index 49dad9cad16..764bc2ff5c2 100644 --- a/sys/dev/ic/rtl81x9.c +++ b/sys/dev/ic/rtl81x9.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9.c,v 1.14 2002/03/14 01:26:55 millert Exp $ */ +/* $OpenBSD: rtl81x9.c,v 1.15 2002/06/07 18:32:51 art Exp $ */ /* * Copyright (c) 1997, 1998 @@ -906,7 +906,8 @@ void rl_start(ifp) break; /* Pack the data into the descriptor. */ - rl_encap(sc, m_head); + if (rl_encap(sc, m_head)) + break; pkts++; #if NBPFILTER > 0 |