From: Hans Dedecker Date: Tue, 3 Jan 2017 09:42:19 +0000 (+0100) Subject: dhcpv6-ia: fix static assignment check X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=091d8a94a6b7325309c3354344b96ff37aed52e2;p=oweals%2Fodhcpd.git dhcpv6-ia: fix static assignment check Fix static assignment check failure which was introduced in commit 561890e Signed-off-by: Hans Dedecker --- diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index abcbe89..59d93b2 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -451,7 +451,7 @@ static void managed_handle_pd_data(struct ustream *s, _unused int bytes_new) if (first && c->managed_size == 0) free_dhcpv6_assignment(c); - else if (first & !(c->flags & OAF_STATIC)) + else if (first && !(c->flags & OAF_STATIC)) c->valid_until = now + 150; }