X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fdhcpv6.c;h=aafd237b034b4a9bd187eb100f88382a3d0ee23a;hb=6959336df6e667145c0670f4455ca59e81f89a34;hp=e52fd6cd95fcf5dc4aa47febb023cb12e00b8eca;hpb=fc0f3fd210223120a63e64cb707097b93568173a;p=odhcp6c.git diff --git a/src/dhcpv6.c b/src/dhcpv6.c index e52fd6c..aafd237 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -934,7 +934,7 @@ static int dhcpv6_handle_reply(enum dhcpv6_msg orig, _unused const int rc, struct dhcpv6_ia_hdr *ia_hdr = (void*)(&odata[-4]); // Test ID - if (ia_hdr->iaid != 1 && otype == DHCPV6_OPT_IA_NA) + if (ia_hdr->iaid != htonl(1) && otype == DHCPV6_OPT_IA_NA) continue; uint16_t code = DHCPV6_Success;