projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f833694
)
sd-dhcp6-client: fix assert in options parsing
author
Tom Gundersen
<teg@jklm.no>
Mon, 26 Oct 2015 12:07:30 +0000
(13:07 +0100)
committer
Tom Gundersen
<teg@jklm.no>
Fri, 30 Oct 2015 11:32:49 +0000
(12:32 +0100)
src/libsystemd-network/dhcp6-option.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-network/dhcp6-option.c
b/src/libsystemd-network/dhcp6-option.c
index
076bb2d
..
0f46df6
100644
(file)
--- 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;