diff options
author | 2001-01-31 08:32:17 +0000 | |
---|---|---|
committer | 2001-01-31 08:32:17 +0000 | |
commit | 35bab1847bea8c94967d8b5d87bbce24bf7a22ce (patch) | |
tree | e8296b6336c1355573caa4ec2a6a4fc6bc30ea3d | |
parent | oops, avoid mbuf lossage if MGETHDR fails (diff) | |
download | wireguard-openbsd-35bab1847bea8c94967d8b5d87bbce24bf7a22ce.tar.xz wireguard-openbsd-35bab1847bea8c94967d8b5d87bbce24bf7a22ce.zip |
it's obviously bed time... really avoid mbuf lossage if MGETHDR fails
-rw-r--r-- | sys/netinet/ip_ether.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_ether.c b/sys/netinet/ip_ether.c index 3e2dd813d80..8b505a7e64f 100644 --- a/sys/netinet/ip_ether.c +++ b/sys/netinet/ip_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ether.c,v 1.16 2001/01/31 08:28:47 jason Exp $ */ +/* $OpenBSD: ip_ether.c,v 1.17 2001/01/31 08:32:17 jason Exp $ */ /* * The author of this code is Angelos D. Keromytis (kermit@adk.gr) @@ -342,7 +342,7 @@ etherip_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip, if (m0 == NULL) { DPRINTF(("etherip_output(): M_GETHDR failed\n")); etheripstat.etherip_adrops++; - m_free(m); + m_freem(m); return ENOBUFS; } M_COPY_PKTHDR(m0, m); |