diff options
author | Gleydson Soares <gsoares@cvs.openbsd.org> | 2018-06-28 02:37:27 +0000 |
---|---|---|
committer | Gleydson Soares <gsoares@cvs.openbsd.org> | 2018-06-28 02:37:27 +0000 |
commit | 4d723916f8308194437f06757129abb2cce5427a (patch) | |
tree | 473c9ad812f59ecc4b560be4ab8aa1f3326c8f4f | |
parent | a0e6659e3fae1058f3396cf4b95da87edea0fb06 (diff) |
calling memset() after calloc() is redudant, since
calloc() already filled all the memory block to 0.
OK deraadt@ cheloha@ millert@
-rw-r--r-- | usr.sbin/sasyncd/pfkey.c | 3 |
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; |