summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp6-option.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-11-03 15:03:50 +0100
committerDaniel Mack <github@zonque.org>2015-11-03 15:03:50 +0100
commit4084052911be74c992f74b0a693115128f2a24a7 (patch)
treedf613da8a04b49f781f4265dd5569ddf25978cb0 /src/libsystemd-network/dhcp6-option.c
parent8889cbd4dcf7ee42c0a0b08f46372044cc041ff6 (diff)
parentc598ac76266572529b8959145651d18546010869 (diff)
Merge pull request #1726 from teg/networkd-2
networkd: (de)serialize more state and support expiring routes
Diffstat (limited to 'src/libsystemd-network/dhcp6-option.c')
-rw-r--r--src/libsystemd-network/dhcp6-option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/dhcp6-option.c b/src/libsystemd-network/dhcp6-option.c
index 076bb2dac0..0f46df6a1b 100644
--- a/src/libsystemd-network/dhcp6-option.c
+++ b/src/libsystemd-network/dhcp6-option.c
@@ -344,7 +344,7 @@ int dhcp6_option_parse_domainname(const uint8_t *optval, uint16_t optlen, char *
int r;
assert_return(optlen > 1, -ENODATA);
- assert_return(optval[optlen] == '\0', -EINVAL);
+ assert_return(optval[optlen - 1] == '\0', -EINVAL);
while (pos < optlen) {
_cleanup_free_ char *ret = NULL;