Source-Changes-HG archive

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

[src/trunk]: src/sys/netipsec Style, and remove meaningless XXX.



details:   https://anonhg.NetBSD.org/src/rev/1286d29677c0
branches:  trunk
changeset: 831905:1286d29677c0
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Apr 19 07:36:23 2018 +0000

description:
Style, and remove meaningless XXX.

diffstat:

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

diffs (40 lines):

diff -r 3aaee3400224 -r 1286d29677c0 sys/netipsec/xform_esp.c
--- a/sys/netipsec/xform_esp.c  Thu Apr 19 07:22:29 2018 +0000
+++ b/sys/netipsec/xform_esp.c  Thu Apr 19 07:36:23 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xform_esp.c,v 1.79 2018/02/16 09:24:55 maxv Exp $      */
+/*     $NetBSD: xform_esp.c,v 1.80 2018/04/19 07:36:23 maxv 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.79 2018/02/16 09:24:55 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.80 2018/04/19 07:36:23 maxv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -355,9 +355,9 @@
        if (esph && sav->replay && !ipsec_chkreplay(ntohl(esp->esp_seq), sav)) {
                char logbuf[IPSEC_LOGSASTRLEN];
                DPRINTF(("%s: packet replay check for %s\n", __func__,
-                   ipsec_logsastr(sav, logbuf, sizeof(logbuf))));      /*XXX*/
+                   ipsec_logsastr(sav, logbuf, sizeof(logbuf))));
                stat = ESP_STAT_REPLAY;
-               error = ENOBUFS;                /*XXX*/
+               error = ENOBUFS; /* XXX */
                goto out;
        }
 
@@ -589,7 +589,8 @@
        /* Release the crypto descriptors */
        pool_cache_put(esp_tdb_crypto_pool_cache, tc);
        tc = NULL;
-       crypto_freereq(crp), crp = NULL;
+       crypto_freereq(crp);
+       crp = NULL;
 
        /*
         * Packet is now decrypted.



Home | Main Index | Thread Index | Old Index