diff options
author | Jouni Malinen <j@w1.fi> | 2003-07-11 10:35:27 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2003-07-11 10:35:27 (GMT) |
commit | 5305171d79eaba98fdde32e9f1c8208f3afa6a81 (patch) | |
tree | 0cf923b5424dbfe59f45f26d0dbea9e921b42c8d | |
parent | 9c658222cbf930a885078242228a2d460ab02d8c (diff) | |
download | hostap-history-5305171d79eaba98fdde32e9f1c8208f3afa6a81.zip hostap-history-5305171d79eaba98fdde32e9f1c8208f3afa6a81.tar.gz hostap-history-5305171d79eaba98fdde32e9f1c8208f3afa6a81.tar.bz2 |
Abort configuration line processing if the invalid line does not contain
'=' to avoid segfaulting on NULL pointer dereference.
-rw-r--r-- | hostapd/config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hostapd/config.c b/hostapd/config.c index 76b0b77..e950ca9 100644 --- a/hostapd/config.c +++ b/hostapd/config.c @@ -193,6 +193,7 @@ struct hostapd_config * hostapd_config_read(const char *fname) if (pos == NULL) { printf("Line %d: invalid line '%s'\n", line, buf); errors++; + continue; } *pos = '\0'; pos++; |