From 3ec2cbbcacf78f222465eb1191752be689030d35 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Wed, 25 Nov 1998 01:03:00 +0000 Subject: Tell caller of error condition --- sys/netinet/ip_esp_new.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/netinet/ip_esp_new.c b/sys/netinet/ip_esp_new.c index 4990064093e..4459236771b 100644 --- a/sys/netinet/ip_esp_new.c +++ b/sys/netinet/ip_esp_new.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp_new.c,v 1.24 1998/08/01 08:35:12 provos Exp $ */ +/* $OpenBSD: ip_esp_new.c,v 1.25 1998/11/25 01:02:59 niklas Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -895,7 +895,7 @@ esp_new_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, tdb->tdb_dst, ntohl(tdb->tdb_spi)); m_freem(m); espstat.esps_wrap++; - return NULL; + return ENOBUFS; } espo.esp_spi = tdb->tdb_spi; -- cgit v1.2.3