summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sasyncd/pfkey.c
diff options
context:
space:
mode:
authorgsoares <gsoares@openbsd.org>2018-06-28 02:37:26 +0000
committergsoares <gsoares@openbsd.org>2018-06-28 02:37:26 +0000
commitbe2ce17214630dc045e8a62ddcbc01c71d3eecc0 (patch)
treefc3868ebef27030d0f552ff602f1afaa55699bdd /usr.sbin/sasyncd/pfkey.c
parentadd missing ${LIBCRYPTO} to DPADD (diff)
downloadwireguard-openbsd-be2ce17214630dc045e8a62ddcbc01c71d3eecc0.tar.xz
wireguard-openbsd-be2ce17214630dc045e8a62ddcbc01c71d3eecc0.zip
calling memset() after calloc() is redudant, since
calloc() already filled all the memory block to 0. OK deraadt@ cheloha@ millert@
Diffstat (limited to 'usr.sbin/sasyncd/pfkey.c')
-rw-r--r--usr.sbin/sasyncd/pfkey.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/sasyncd/pfkey.c b/usr.sbin/sasyncd/pfkey.c
index 7524f8671ee..e49bc427e4f 100644
--- a/usr.sbin/sasyncd/pfkey.c
+++ b/usr.sbin/sasyncd/pfkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkey.c,v 1.28 2017/04/18 02:29:56 deraadt Exp $ */
+/* $OpenBSD: pfkey.c,v 1.29 2018/06/28 02:37:26 gsoares Exp $ */
/*
* Copyright (c) 2005 Håkan Olsson. All rights reserved.
@@ -115,7 +115,6 @@ pfkey_send_flush(struct syncpeer *p)
static u_int32_t seq = 1;
if (m) {
- memset(m, 0, sizeof *m);
m->sadb_msg_version = PF_KEY_V2;
m->sadb_msg_seq = seq++;
m->sadb_msg_type = SADB_FLUSH;