diff options
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | common.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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 <suz@kame.net> * common.c: fixed a possible memory leak. (Bug-ID 1844676) @@ -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; } |