calloc() already filled all the memory block to 0, zap memset().
Index: pfkey.c
===================================================================
RCS file: /cvs/src/usr.sbin/sasyncd/pfkey.c,v
retrieving revision 1.28
diff -u -p -r1.28 pfkey.c
--- pfkey.c     18 Apr 2017 02:29:56 -0000      1.28
+++ pfkey.c     24 Jun 2018 04:36:51 -0000
@@ -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;

Reply via email to