diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-04-06 17:57:24 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-04-06 17:57:24 -0400 | 
| commit | 4390fb9991e78d759c25ffc23be378c8b9242614 (patch) | |
| tree | 4e68a2c8a73332520426f8b94e13010b61c2e637 /pimd/pim_tlv.c | |
| parent | 096398104b4c223d7f6a90cae632a1b418799517 (diff) | |
pimd: Fix various sizeof and buffer length issues
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_tlv.c')
| -rw-r--r-- | pimd/pim_tlv.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_tlv.c b/pimd/pim_tlv.c index 1d58ce3ac6..259ed44c71 100644 --- a/pimd/pim_tlv.c +++ b/pimd/pim_tlv.c @@ -523,7 +523,7 @@ pim_parse_addr_ucast (struct prefix *p,      p->family = AF_INET6;      p->prefixlen = IPV6_MAX_PREFIXLEN; -    memcpy(&p->u.prefix6, addr, 16); +    memcpy(&p->u.prefix6, addr, sizeof(struct in6_addr));      addr += sizeof(struct in6_addr);      break;  | 
