mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
Correctly check for network name. Issue spotted using coverity.
This commit is contained in:
@@ -1357,7 +1357,7 @@ static int connect_handler(worker_st * ws)
|
||||
exit_worker(ws);
|
||||
}
|
||||
|
||||
if (ws->config->network.name == NULL) {
|
||||
if (ws->config->network.name[0] == 0) {
|
||||
oclog(ws, LOG_ERR,
|
||||
"no networks are configured; rejecting client");
|
||||
tls_puts(ws->session, "HTTP/1.1 503 Service Unavailable\r\n");
|
||||
|
||||
Reference in New Issue
Block a user