X-Git-Url: https://git.decadent.org.uk/gitweb/?p=odhcp6c.git;a=blobdiff_plain;f=src%2Fdhcpv6.c;h=7c6da00c3d3e6ef723e0f23a13f58847e0f606d6;hp=873f0df6641aabf91243bd06ed6d762216deafab;hb=fd9801a99fa0d3eea8aad5d19c5c8db8cb779a82;hpb=76c4797e82ec820d488e41ffe37adc107b5d0218 diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 873f0df..7c6da00 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -1032,7 +1032,10 @@ static int dhcpv6_handle_reply(enum dhcpv6_msg orig, _unused const int rc, } else if (otype == DHCPV6_OPT_S46_CONT_MAPT) { odhcp6c_add_state(STATE_S46_MAPT, odata, olen); } else if (otype == DHCPV6_OPT_S46_CONT_MAPE) { - odhcp6c_add_state(STATE_S46_MAPE, odata, olen); + size_t mape_len; + odhcp6c_get_state(STATE_S46_MAPE, &mape_len); + if (mape_len == 0) + odhcp6c_add_state(STATE_S46_MAPE, odata, olen); } else if (otype == DHCPV6_OPT_S46_CONT_LW) { odhcp6c_add_state(STATE_S46_LW, odata, olen); #endif