dhcpv6-ia: fix static assignment check
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 3 Jan 2017 09:42:19 +0000 (10:42 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 3 Jan 2017 09:45:17 +0000 (10:45 +0100)
Fix static assignment check failure which was
introduced in commit 561890e

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv6-ia.c

index abcbe8904b83a2691cee929c485df650b24e3f98..59d93b2b37c6bd9646196d983476cdc7a856f2b4 100644 (file)
@@ -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;
 }