diff options
author | Chris Leech <cleech@redhat.com> | 2020-01-17 13:42:10 -0800 |
---|---|---|
committer | Chris Leech <cleech@redhat.com> | 2020-01-20 10:42:51 -0800 |
commit | e9c9117b7a84866366691110496984fc651e3e43 (patch) | |
tree | 01f851938c44066fb7376ad9474bbcfedc55e304 /iscsiuio | |
parent | 42e31225540f82f16db9eecc5144f36c963fc7fd (diff) | |
download | open-iscsi-e9c9117b7a84866366691110496984fc651e3e43.tar.gz |
Revert "Out-of-bounds read: Overrunning array of 8 2-byte elements"
It's been reported that this breaks IPv6 discovery with qedi controllers
This reverts commit af48f0d68db48cd492d0e27e046fc011be236fd3.
Diffstat (limited to 'iscsiuio')
-rw-r--r-- | iscsiuio/src/uip/ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iscsiuio/src/uip/ipv6.c b/iscsiuio/src/uip/ipv6.c index 5710199..05efa73 100644 --- a/iscsiuio/src/uip/ipv6.c +++ b/iscsiuio/src/uip/ipv6.c @@ -521,7 +521,7 @@ static void ipv6_insert_protocol_chksum(struct ipv6_hdr *ipv6) sum = 0; ptr = (u16_t *)&ipv6->ipv6_src; - for (i = 0; i < sizeof(struct ipv6_addr); i += 2) { + for (i = 0; i < sizeof(struct ipv6_addr); i++) { sum += HOST_TO_NET16(*ptr); ptr++; } |