Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Return a return value of key_senderror as usual
details: https://anonhg.NetBSD.org/src/rev/2657df2f9864
branches: trunk
changeset: 354015:2657df2f9864
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu Jun 01 03:51:08 2017 +0000
description:
Return a return value of key_senderror as usual
diffstat:
sys/netipsec/key.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r ac011599218b -r 2657df2f9864 sys/netipsec/key.c
--- a/sys/netipsec/key.c Thu Jun 01 02:45:05 2017 +0000
+++ b/sys/netipsec/key.c Thu Jun 01 03:51:08 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.159 2017/05/31 09:53:35 ozaki-r Exp $ */
+/* $NetBSD: key.c,v 1.160 2017/06/01 03:51: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.159 2017/05/31 09:53:35 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.160 2017/06/01 03:51:08 ozaki-r Exp $");
/*
* This code is referd to RFC 2367
@@ -2199,8 +2199,7 @@
if (mhp->ext[SADB_X_EXT_POLICY] == NULL ||
mhp->extlen[SADB_X_EXT_POLICY] < sizeof(struct sadb_x_policy)) {
IPSECLOG(LOG_DEBUG, "invalid message is passed.\n");
- key_senderror(so, m, EINVAL);
- return 0;
+ return key_senderror(so, m, EINVAL);
}
id = ((struct sadb_x_policy *)mhp->ext[SADB_X_EXT_POLICY])->sadb_x_policy_id;
Home |
Main Index |
Thread Index |
Old Index