From 091d8a94a6b7325309c3354344b96ff37aed52e2 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Tue, 3 Jan 2017 10:42:19 +0100 Subject: dhcpv6-ia: fix static assignment check Fix static assignment check failure which was introduced in commit 561890e Signed-off-by: Hans Dedecker --- src/dhcpv6-ia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dhcpv6-ia.c') 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; } -- cgit v1.2.3