aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSUZUKI, Shinsuke <suz@kame.net>2006-11-14 18:43:52 +0000
committerSUZUKI, Shinsuke <suz@kame.net>2006-11-14 18:43:52 +0000
commit517b5241e22aa8becd1e22f79e31bb90d76beb77 (patch)
tree6913547abd1a3a568833d33824ab62f0c20d372c
parent37256b66704357e81215fbba97671694059c193e (diff)
fixed an IA allocation failure from pool when it doubly requested by the same client. (patch submitted by Hajimu UMEMOTO)
-rw-r--r--CHANGES4
-rw-r--r--dhcp6s.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index b5a576a..a487295 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+2006-11-15 SUZUKI, Shinsuke <suz@kame.net>
+ * dhcp6s.c: fixed an IA allocation failure from pool when it doubly
+ requested by the same client. (patch submitted by Hajimu UMEMOTO)
+
2006-11-05 SUZUKI, Shinsuke <suz@kame.net>
* dhcp6s.c: dhcp6s recognizes "-P" option.
(patch submitted by Masahide NAKAMURA)
diff --git a/dhcp6s.c b/dhcp6s.c
index e586039..0016438 100644
--- a/dhcp6s.c
+++ b/dhcp6s.c
@@ -2501,13 +2501,12 @@ make_ia(spec, conflist, retlist, client_conf, do_binding)
bia = TAILQ_NEXT(bia, link)) {
if ((v = dhcp6_find_listval(conflist,
bia->type, &bia->uv, 0)) != NULL) {
- found++;
TAILQ_REMOVE(conflist, v, link);
dhcp6_clear_listval(v);
}
}
- return (found);
+ return (1);
}
/*