diff options
Diffstat (limited to 'src/dhcpv6.c')
-rw-r--r-- | src/dhcpv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 793b3be..9411dd0 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -1343,7 +1343,7 @@ static unsigned int dhcpv6_parse_ia(void *opt, void *end) t1 = ntohl(ia_hdr->t1); t2 = ntohl(ia_hdr->t2); - if (t1 > t2) + if (t1 > t2 && t1 > 0 && t2 > 0) return 0; syslog(LOG_INFO, "%s %04x T1 %d T2 %d", ntohs(ia_hdr->type) == DHCPV6_OPT_IA_PD ? "IA_PD" : "IA_NA", ntohl(ia_hdr->iaid), t1, t2); |