diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-06-10 22:18:54 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-06-10 22:18:54 +0200 |
commit | 73d11e2ec1c689b3882ce8cf8e8afe4f51515230 (patch) | |
tree | 5cce58971128298126de236c5e52a24d7e731f72 /eigrpd/eigrp_packet.c | |
parent | eigrpd: Fix leak of ep (diff) | |
download | frr-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.c | 2 |
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; |