]> git.decadent.org.uk Git - odhcp6c.git/blobdiff - src/dhcpv6.c
Check for unsupported PD exclusion configuration in dhcpv6_parse_ia
[odhcp6c.git] / src / dhcpv6.c
index c2a3e3d630a6fb42e0db54696cef2b3b9417cde7..2d8124f288171f966e777720254c401d7d3b14ce 100644 (file)
@@ -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;
                                }