summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-01-03 10:42:19 +0100
committerHans Dedecker <dedeckeh@gmail.com>2017-01-03 10:45:17 +0100
commit091d8a94a6b7325309c3354344b96ff37aed52e2 (patch)
treee0786cfe660abe91815058b5ba6ccb5d36f75ccf /src
parent11ce6b5f0eaa9eac8cfcb77a89829275ebf04f96 (diff)
dhcpv6-ia: fix static assignment check
Fix static assignment check failure which was introduced in commit 561890e Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/dhcpv6-ia.c2
1 files changed, 1 insertions, 1 deletions
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;
}