aboutsummaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'common.c')
-rw-r--r--common.c2
1 files changed, 1 insertions, 1 deletions
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;
}