Source-Changes-HG archive

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

[src/trunk]: src/sys/netipsec one more botched statistics counter (could incr...



details:   https://anonhg.NetBSD.org/src/rev/fa205d09cbdd
branches:  trunk
changeset: 762065:fa205d09cbdd
user:      drochner <drochner%NetBSD.org@localhost>
date:      Mon Feb 14 18:49:31 2011 +0000

description:
one more botched statistics counter (could increment semi-random locations)

diffstat:

 sys/netipsec/xform_esp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 97ff3431e449 -r fa205d09cbdd sys/netipsec/xform_esp.c
--- a/sys/netipsec/xform_esp.c  Mon Feb 14 18:41:09 2011 +0000
+++ b/sys/netipsec/xform_esp.c  Mon Feb 14 18:49:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xform_esp.c,v 1.25 2011/02/14 16:34:43 drochner Exp $  */
+/*     $NetBSD: xform_esp.c,v 1.26 2011/02/14 18:49:31 drochner Exp $  */
 /*     $FreeBSD: src/sys/netipsec/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.25 2011/02/14 16:34:43 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.26 2011/02/14 18:49:31 drochner Exp $");
 
 #include "opt_inet.h"
 #ifdef __FreeBSD__
@@ -983,7 +983,7 @@
        }
        ESP_STATINC(ESP_STAT_HIST + sav->alg_enc);
        if (sav->tdb_authalgxform != NULL)
-               AH_STATINC(sav->alg_auth + sav->alg_auth);
+               AH_STATINC(AH_STAT_HIST + sav->alg_auth);
 
        /* Release crypto descriptors. */
        free(tc, M_XDATA);



Home | Main Index | Thread Index | Old Index