summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_ah_new.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-11-25 09:56:52 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-11-25 09:56:52 +0000
commit365336b374f907fb36ef16f668084eac9b0259cf (patch)
tree499eda0749ccc4d6d9e7fae23739f3438c2ecf8f /sys/netinet/ip_ah_new.c
parentd6d9c0d26f864c7e5fb808fad65dc88cd879da2a (diff)
Better error code for too large packets
Diffstat (limited to 'sys/netinet/ip_ah_new.c')
-rw-r--r--sys/netinet/ip_ah_new.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_ah_new.c b/sys/netinet/ip_ah_new.c
index 1b4dd48ca7f..022deed2c2b 100644
--- a/sys/netinet/ip_ah_new.c
+++ b/sys/netinet/ip_ah_new.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ah_new.c,v 1.19 1998/11/25 02:01:27 niklas Exp $ */
+/* $OpenBSD: ip_ah_new.c,v 1.20 1998/11/25 09:56:50 niklas Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -590,7 +590,7 @@ ah_new_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb,
tdb->tdb_dst, ntohl(tdb->tdb_spi));
m_freem(m);
ahstat.ahs_toobig++;
- return ENOBUFS;
+ return EMSGSIZE;
}
ipo.ip_v = IPVERSION;