Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec When the replay check fails, retur...
details: https://anonhg.NetBSD.org/src/rev/5b666cafc96c
branches: trunk
changeset: 318605:5b666cafc96c
user: maxv <maxv%NetBSD.org@localhost>
date: Tue May 01 08:16:34 2018 +0000
description:
When the replay check fails, return EACCES instead of ENOBUFS.
diffstat:
sys/netipsec/xform_ah.c | 6 +++---
sys/netipsec/xform_esp.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 0979ee407630 -r 5b666cafc96c sys/netipsec/xform_ah.c
--- a/sys/netipsec/xform_ah.c Tue May 01 08:13:37 2018 +0000
+++ b/sys/netipsec/xform_ah.c Tue May 01 08:16:34 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xform_ah.c,v 1.95 2018/04/28 15:45:16 maxv Exp $ */
+/* $NetBSD: xform_ah.c,v 1.96 2018/05/01 08:16:34 maxv Exp $ */
/* $FreeBSD: xform_ah.c,v 1.1.4.1 2003/01/24 05:11:36 sam Exp $ */
/* $OpenBSD: ip_ah.c,v 1.63 2001/06/26 06:18:58 angelos Exp $ */
/*
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xform_ah.c,v 1.95 2018/04/28 15:45:16 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xform_ah.c,v 1.96 2018/05/01 08:16:34 maxv Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -546,7 +546,7 @@
DPRINTF(("%s: packet replay failure: %s\n", __func__,
ipsec_logsastr(sav, buf, sizeof(buf))));
stat = AH_STAT_REPLAY;
- error = ENOBUFS;
+ error = EACCES;
goto bad;
}
diff -r 0979ee407630 -r 5b666cafc96c sys/netipsec/xform_esp.c
--- a/sys/netipsec/xform_esp.c Tue May 01 08:13:37 2018 +0000
+++ b/sys/netipsec/xform_esp.c Tue May 01 08:16:34 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xform_esp.c,v 1.83 2018/05/01 08:13:37 maxv Exp $ */
+/* $NetBSD: xform_esp.c,v 1.84 2018/05/01 08:16:34 maxv Exp $ */
/* $FreeBSD: xform_esp.c,v 1.2.2.1 2003/01/24 05:11:36 sam Exp $ */
/* $OpenBSD: ip_esp.c,v 1.69 2001/06/26 06:18:59 angelos Exp $ */
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.83 2018/05/01 08:13:37 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.84 2018/05/01 08:16:34 maxv Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -354,7 +354,7 @@
DPRINTF(("%s: packet replay check for %s\n", __func__,
ipsec_logsastr(sav, logbuf, sizeof(logbuf))));
stat = ESP_STAT_REPLAY;
- error = ENOBUFS; /* XXX */
+ error = EACCES;
goto out;
}
Home |
Main Index |
Thread Index |
Old Index