summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_packet.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-06-10 22:18:54 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-06-10 22:18:54 +0200
commit73d11e2ec1c689b3882ce8cf8e8afe4f51515230 (patch)
tree5cce58971128298126de236c5e52a24d7e731f72 /eigrpd/eigrp_packet.c
parenteigrpd: Fix leak of ep (diff)
downloadfrr-73d11e2ec1c689b3882ce8cf8e8afe4f51515230.tar.xz
frr-73d11e2ec1c689b3882ce8cf8e8afe4f51515230.zip
eigrpd: Use correct memory operation
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_packet.c')
-rw-r--r--eigrpd/eigrp_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eigrpd/eigrp_packet.c b/eigrpd/eigrp_packet.c
index 2d02acc00..d252f9131 100644
--- a/eigrpd/eigrp_packet.c
+++ b/eigrpd/eigrp_packet.c
@@ -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;