From 11a55076be9d96f1958e3ece5769eef22850f880 Mon Sep 17 00:00:00 2001 From: "SUZUKI, Shinsuke" Date: Thu, 1 May 2008 04:16:32 +0000 Subject: fixed a improper handling of a domain-name ending with '.'. (Bug-ID: 1852869) --- CHANGES | 2 ++ common.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 3838f37..950b57c 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,8 @@ * config.c: fixed a possible memory leak. (Bug-ID 1847588) * dhcp6s.c: fixed a lifetime calculation failure in RENEW/REBIND process for stateful-address. (Bug-ID: 1850457) + * common.c: fixed a improper handling of a domain-name ending with '.'. + (Bug-ID: 1852869) 2007-12-06 SUZUKI, Shinsuke * common.c: fixed a possible memory leak. (Bug-ID 1844676) diff --git a/common.c b/common.c index 3538c00..f35399c 100644 --- a/common.c +++ b/common.c @@ -513,7 +513,7 @@ dhcp6_set_domain(type, list, p, optep, len) memcpy(cp, name, nlen); cp += nlen; } - if (copy_option(type, optlen, tmpbuf, p, optep, len) != 0) { + if (copy_option(type, cp - tmpbuf, tmpbuf, p, optep, len) != 0) { free(tmpbuf); return -1; } -- cgit v1.2.3