Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netipsec ENOBUFS -> EACCES when updating the replay coun...



details:   https://anonhg.NetBSD.org/src/rev/69dd68f94477
branches:  trunk
changeset: 361790:69dd68f94477
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri May 11 15:43:07 2018 +0000

description:
ENOBUFS -> EACCES when updating the replay counter.

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 d939a1234e68 -r 69dd68f94477 sys/netipsec/xform_ah.c
--- a/sys/netipsec/xform_ah.c   Fri May 11 14:42:03 2018 +0000
+++ b/sys/netipsec/xform_ah.c   Fri May 11 15:43:07 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xform_ah.c,v 1.98 2018/05/07 09:16:46 maxv Exp $       */
+/*     $NetBSD: xform_ah.c,v 1.99 2018/05/11 15:43:07 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.98 2018/05/07 09:16:46 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xform_ah.c,v 1.99 2018/05/11 15:43:07 maxv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -837,7 +837,7 @@
                    sizeof(seq), &seq);
                if (ipsec_updatereplay(ntohl(seq), sav)) {
                        AH_STATINC(AH_STAT_REPLAY);
-                       error = ENOBUFS; /* XXX */
+                       error = EACCES;
                        goto bad;
                }
        }
diff -r d939a1234e68 -r 69dd68f94477 sys/netipsec/xform_esp.c
--- a/sys/netipsec/xform_esp.c  Fri May 11 14:42:03 2018 +0000
+++ b/sys/netipsec/xform_esp.c  Fri May 11 15:43:07 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xform_esp.c,v 1.86 2018/05/07 09:16:46 maxv Exp $      */
+/*     $NetBSD: xform_esp.c,v 1.87 2018/05/11 15:43:07 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.86 2018/05/07 09:16:46 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.87 2018/05/11 15:43:07 maxv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -607,7 +607,7 @@
                        DPRINTF(("%s: packet replay check for %s\n", __func__,
                            ipsec_logsastr(sav, logbuf, sizeof(logbuf))));
                        ESP_STATINC(ESP_STAT_REPLAY);
-                       error = ENOBUFS;
+                       error = EACCES;
                        goto bad;
                }
        }



Home | Main Index | Thread Index | Old Index