]> git.puffer.fish Git - mirror/frr.git/commitdiff
eigrpd: Use correct memory operation
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 10 Jun 2017 20:18:54 +0000 (16:18 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 10 Jun 2017 20:18:54 +0000 (16:18 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
eigrpd/eigrp_packet.c

index 2d02acc00b2c989350c8f2912b680c1ea2c0cc8f..d252f91313c5c96a2e540baf038c63171d316346 100644 (file)
@@ -185,7 +185,7 @@ eigrp_check_md5_digest (struct stream *s,
   eigrph->checksum = 0;
 
   auth_TLV =(struct TLV_MD5_Authentication_Type *) (s->data + EIGRP_HEADER_LEN);
-  memcpy(auth_TLV->digest, "0", sizeof(auth_TLV->digest));
+  memset(auth_TLV->digest, 0, sizeof(auth_TLV->digest));
 
   ibuf = s->data;
   backup_end = s->endp;