projects
/
project
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb8470f
)
config: fix wrong assignment
author
Hans Dedecker
<dedeckeh@gmail.com>
Fri, 22 Jun 2018 14:16:30 +0000
(16:16 +0200)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Fri, 22 Jun 2018 14:16:30 +0000
(16:16 +0200)
Detected by Coverity in CID1430899
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/config.c
patch
|
blob
|
history
diff --git
a/src/config.c
b/src/config.c
index c3e2437901f7db340a8ca93d5eeec3382b2a7a68..118349ac311138bf13359f3fdb999037138c5734 100644
(file)
--- a/
src/config.c
+++ b/
src/config.c
@@
-728,7
+728,7
@@
int config_parse_interface(void *data, size_t len, const char *name, bool overwr
char *delim;
int l;
if (!astr || !strcpy(astr, str) ||
- (delim = strchr(astr, '/')) == NULL || (*(delim++) = 0) ||
+ (delim = strchr(astr, '/')) == NULL || (*(delim++) =
=
0) ||
sscanf(delim, "%i", &l) == 0 || l > 128 ||
inet_pton(AF_INET6, astr, &iface->pio_filter_addr) == 0) {
iface->pio_filter_length = 0;