diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2018-06-22 16:16:30 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-06-22 16:16:30 +0200 |
commit | c9114a14e3dd59c133d44ba33b977ef60b20b16e (patch) | |
tree | a722d5571c2c7b07ec543dad5089a86cb2363990 /src/config.c | |
parent | bb8470f590b7b51de6f8acbaa63ad185c0388e84 (diff) |
config: fix wrong assignment
Detected by Coverity in CID1430899
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index c3e2437..118349a 100644 --- 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; |