eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit cdb2c2b3e3d6d8580c363c527edca324d30f8db2
parent fd934aa39e8d18e3a9f194361e81ee3de1e6e343
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date:   Fri, 26 Feb 2021 17:17:23 +0100

ap: Fix an inet_aton error check

inet_aton returns 0 on error, not a negative number.

Diffstat:
Msrc/ap.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ap.c b/src/ap.c @@ -213,7 +213,7 @@ static const char *broadcast_from_ip(const char *ip) struct in_addr ia; uint32_t bcast; - if (inet_aton(ip, &ia) < 0) + if (inet_aton(ip, &ia) != 1) return NULL; bcast = ntohl(ia.s_addr);