diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-11-25 09:56:52 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-11-25 09:56:52 +0000 |
commit | 365336b374f907fb36ef16f668084eac9b0259cf (patch) | |
tree | 499eda0749ccc4d6d9e7fae23739f3438c2ecf8f /sys/netinet/ip_esp_old.c | |
parent | d6d9c0d26f864c7e5fb808fad65dc88cd879da2a (diff) |
Better error code for too large packets
Diffstat (limited to 'sys/netinet/ip_esp_old.c')
-rw-r--r-- | sys/netinet/ip_esp_old.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_esp_old.c b/sys/netinet/ip_esp_old.c index db56229420e..79a163b5860 100644 --- a/sys/netinet/ip_esp_old.c +++ b/sys/netinet/ip_esp_old.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp_old.c,v 1.22 1998/11/25 02:30:59 niklas Exp $ */ +/* $OpenBSD: ip_esp_old.c,v 1.23 1998/11/25 09:56:51 niklas Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -634,7 +634,7 @@ esp_old_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, tdb->tdb_dst, ntohl(tdb->tdb_spi)); m_freem(m); espstat.esps_toobig++; - return ENOBUFS; + return EMSGSIZE; } pad = (u_char *) m_pad(m, padding); |