Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Send up an error message on error as well as ot...
details: https://anonhg.NetBSD.org/src/rev/9b547379badf
branches: trunk
changeset: 353967:9b547379badf
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue May 30 09:39:08 2017 +0000
description:
Send up an error message on error as well as others
diffstat:
sys/netipsec/key.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 1fb5c4d5fa1f -r 9b547379badf sys/netipsec/key.c
--- a/sys/netipsec/key.c Tue May 30 08:29:24 2017 +0000
+++ b/sys/netipsec/key.c Tue May 30 09:39:08 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.148 2017/05/30 01:31:07 ozaki-r Exp $ */
+/* $NetBSD: key.c,v 1.149 2017/05/30 09:39:08 ozaki-r Exp $ */
/* $FreeBSD: src/sys/netipsec/key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $ */
/* $KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $ */
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.148 2017/05/30 01:31:07 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.149 2017/05/30 09:39:08 ozaki-r Exp $");
/*
* This code is referd to RFC 2367
@@ -1910,8 +1910,7 @@
break;
default:
IPSECLOG(LOG_DEBUG, "Invalid SP direction.\n");
- mhp->msg->sadb_msg_errno = EINVAL;
- return 0;
+ return key_senderror(so, m, EINVAL);
}
/* check policy */
Home |
Main Index |
Thread Index |
Old Index