projects
/
project
/
usteer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc383d4
)
config: check for empty ssid list
author
Felix Fietkau
<nbd@nbd.name>
Tue, 6 Jul 2021 09:00:35 +0000
(11:00 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Tue, 6 Jul 2021 09:10:15 +0000
(11:10 +0200)
Without this check, an empty ssid list array results in a config with no nodes
Signed-off-by: Felix Fietkau <nbd@nbd.name>
local_node.c
patch
|
blob
|
history
diff --git
a/local_node.c
b/local_node.c
index 788fd99d623f9f4b8d3f49a02a4c88f8bd4c06e0..31c33779bca1a0f0c32fab75b4da8bb9493895c8 100644
(file)
--- a/
local_node.c
+++ b/
local_node.c
@@
-543,7
+543,7
@@
void config_set_ssid_list(struct blob_attr *data)
free(config.ssid_list);
- if (data)
+ if (data
&& blobmsg_len(data)
)
config.ssid_list = blob_memdup(data);
else
config.ssid_list = NULL;