X-Git-Url: https://git.decadent.org.uk/gitweb/?p=odhcp6c.git;a=blobdiff_plain;f=src%2Fdhcpv6.c;fp=src%2Fdhcpv6.c;h=2d8124f288171f966e777720254c401d7d3b14ce;hp=c2a3e3d630a6fb42e0db54696cef2b3b9417cde7;hb=abe9d1b0739857f4a0d25005f9f0523153a6fe23;hpb=b0d1c5805a6b76c3b198728cdfd93e351d5eb196 diff --git a/src/dhcpv6.c b/src/dhcpv6.c index c2a3e3d..2d8124f 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -1185,7 +1185,7 @@ static int dhcpv6_parse_ia(void *opt, void *end) if (elen > 64) elen = 64; - if (elen <= 32 || elen <= entry.length) { + if (entry.length < 32 || elen <= entry.length) { ok = false; continue; }