sd-dhcp6-client: fix assert in options parsing

This commit is contained in:
Tom Gundersen
2015-10-30 12:32:49 +01:00
parent f833694d4f
commit 93f660da98
+1 -1
View File
@@ -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;