diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-11-18 19:40:26 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-11-18 19:40:26 +0000 |
commit | 0ab9a77f9689dcf99c8b389db375b5cd5be1d8d5 (patch) | |
tree | 39b4cf3e2116fc9f00253e5936b5819a4e500ecd /src | |
parent | ae1be78c7ee2afac5be63d2aa6686d123d750692 (diff) | |
download | bcnm-0ab9a77f9689dcf99c8b389db375b5cd5be1d8d5.tar.gz bcnm-0ab9a77f9689dcf99c8b389db375b5cd5be1d8d5.tar.xz bcnm-0ab9a77f9689dcf99c8b389db375b5cd5be1d8d5.zip |
Fix "The New Fo" SSID
Diffstat (limited to 'src')
-rw-r--r-- | src/libwpactrl/wpactrl_scan_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libwpactrl/wpactrl_scan_parse.c b/src/libwpactrl/wpactrl_scan_parse.c index c97c59d..5ffe64c 100644 --- a/src/libwpactrl/wpactrl_scan_parse.c +++ b/src/libwpactrl/wpactrl_scan_parse.c @@ -33,8 +33,8 @@ static int wpactrl_scan_parse_one (char const *s, size_t len, wpactrl_scanres_t s += pos + 1 ; len -= pos + 1 ; sr.flags_len = sa->len - sr.flags_start ; sr.ssid_start = sa->len ; - sr.ssid_len = len ? len - 1 : 0 ; - if (!stralloc_catb(sa, s, len ? len - 1 : 0) || !stralloc_0(sa)) return 0 ; + sr.ssid_len = len ; + if (!stralloc_catb(sa, s, len) || !stralloc_0(sa)) return 0 ; *thing = sr ; return 1 ; |