projects
/
oweals
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56c6a4a
)
config: more static ndp fixes
author
Steven Barth
<steven@midlink.org>
Tue, 25 Feb 2014 11:39:34 +0000
(12:39 +0100)
committer
Steven Barth
<steven@midlink.org>
Tue, 25 Feb 2014 11:39:34 +0000
(12:39 +0100)
src/config.c
patch
|
blob
|
history
diff --git
a/src/config.c
b/src/config.c
index cac2d0920ea4b936311d57c999e6e1b34dcfc409..7f51585fdb848d2b4b85377e19068bb3ef896b02 100644
(file)
--- a/
src/config.c
+++ b/
src/config.c
@@
-494,6
+494,9
@@
int config_parse_interface(void *data, size_t len, const char *name, bool overwr
if (!iface->static_ndp)
goto err;
+ if (iface->static_ndp_len)
+ iface->static_ndp[iface->static_ndp_len - 1] = ' ';
+
memcpy(&iface->static_ndp[iface->static_ndp_len], blobmsg_get_string(cur), len);
iface->static_ndp_len += len;
}