diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2021-03-22 10:22:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-22 10:22:25 -0400 |
| commit | 7bf7917cdec9407db3666147406aec75ae6828ed (patch) | |
| tree | 6a2ea8099be802614ba80dda7309184d2e1558a7 /pceplib/pcep_msg_objects_encoding.c | |
| parent | cb39b2d4aa37d2068ffc842695b312c09b1e0d37 (diff) | |
| parent | 7ed8c4b1fd2cd46864271e44a9778caa31d367fd (diff) | |
Merge pull request #8303 from volta-networks/fix_coverity_pceplib
pceplib: Fixing coverity messages.
Diffstat (limited to 'pceplib/pcep_msg_objects_encoding.c')
| -rw-r--r-- | pceplib/pcep_msg_objects_encoding.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pceplib/pcep_msg_objects_encoding.c b/pceplib/pcep_msg_objects_encoding.c index d40b840869..c4089ba5ec 100644 --- a/pceplib/pcep_msg_objects_encoding.c +++ b/pceplib/pcep_msg_objects_encoding.c @@ -1668,7 +1668,7 @@ struct pcep_object_header *pcep_decode_obj_ro(struct pcep_object_header *hdr, ipv6 = pceplib_malloc(PCEPLIB_MESSAGES, sizeof(struct in6_addr)); - decode_ipv6(uint32_ptr + LENGTH_4WORDS, ipv6); + decode_ipv6(uint32_ptr + 4, ipv6); dll_append(sr_subobj->nai_list, ipv6); read_count += LENGTH_8WORDS; @@ -1684,17 +1684,17 @@ struct pcep_object_header *pcep_decode_obj_ro(struct pcep_object_header *hdr, struct in_addr *ipv4 = pceplib_malloc(PCEPLIB_MESSAGES, sizeof(struct in_addr)); - ipv4->s_addr = uint32_ptr[LENGTH_4WORDS]; + ipv4->s_addr = uint32_ptr[4]; dll_append(sr_subobj->nai_list, ipv4); ipv6 = pceplib_malloc(PCEPLIB_MESSAGES, sizeof(struct in6_addr)); - decode_ipv6(uint32_ptr + LENGTH_5WORDS, ipv6); + decode_ipv6(uint32_ptr + 5, ipv6); dll_append(sr_subobj->nai_list, ipv6); ipv4 = pceplib_malloc(PCEPLIB_MESSAGES, sizeof(struct in_addr)); - ipv4->s_addr = uint32_ptr[LENGTH_9WORDS]; + ipv4->s_addr = uint32_ptr[9]; dll_append(sr_subobj->nai_list, ipv4); read_count += LENGTH_10WORDS; |
