From c0f52186bfa768892db81e9051b880ff290e04ca Mon Sep 17 00:00:00 2001 From: Christian Giese Date: Mon, 20 Jun 2022 09:27:51 +0000 Subject: [PATCH] fix DHCPv6 decode --- code/bngblaster/src/bbl_protocols.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/bngblaster/src/bbl_protocols.c b/code/bngblaster/src/bbl_protocols.c index 4159d246..b133a61f 100644 --- a/code/bngblaster/src/bbl_protocols.c +++ b/code/bngblaster/src/bbl_protocols.c @@ -2252,12 +2252,12 @@ decode_dhcpv6(uint8_t *buf, uint16_t len, dhcpv6->rapid = true; break; case DHCPV6_OPTION_IA_NA: - if(decode_dhcpv6_ia_na(buf, len, dhcpv6) != PROTOCOL_SUCCESS) { + if(decode_dhcpv6_ia_na(buf, option_len, dhcpv6) != PROTOCOL_SUCCESS) { return DECODE_ERROR; } break; case DHCPV6_OPTION_IA_PD: - if(decode_dhcpv6_ia_pd(buf, len, dhcpv6) != PROTOCOL_SUCCESS) { + if(decode_dhcpv6_ia_pd(buf, option_len, dhcpv6) != PROTOCOL_SUCCESS) { return DECODE_ERROR; } break;