Module Name: src Committed By: maxv Date: Thu Apr 19 07:36:23 UTC 2018
Modified Files: src/sys/netipsec: xform_esp.c Log Message: Style, and remove meaningless XXX. To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.80 src/sys/netipsec/xform_esp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/netipsec/xform_esp.c diff -u src/sys/netipsec/xform_esp.c:1.79 src/sys/netipsec/xform_esp.c:1.80 --- src/sys/netipsec/xform_esp.c:1.79 Fri Feb 16 09:24:55 2018 +++ src/sys/netipsec/xform_esp.c Thu Apr 19 07:36:23 2018 @@ -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 @@ esp_input(struct mbuf *m, struct secasva 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 @@ esp_input_cb(struct cryptop *crp) /* 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.