mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
code cleanup
This commit is contained in:
@@ -326,7 +326,7 @@ unsigned found = 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (req->password == NULL && s->config->auth_types & AUTH_TYPE_USERNAME_PASS) {
|
||||
if (req->password == NULL) {
|
||||
mslog(s, proc, LOG_DEBUG, "auth reinit from '%s' with no password present", ip);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -778,7 +778,7 @@ int check_if_banned(main_server_st * s, struct sockaddr_storage *addr,
|
||||
socklen_t addr_len)
|
||||
{
|
||||
time_t now = time(0);
|
||||
struct banned_st *btmp, *bpos;
|
||||
struct banned_st *btmp = NULL, *bpos;
|
||||
|
||||
if (s->config->min_reauth_time == 0)
|
||||
return 0;
|
||||
|
||||
@@ -192,7 +192,6 @@ char *rl_gets(char *line_read)
|
||||
to the free pool. */
|
||||
if (line_read) {
|
||||
free(line_read);
|
||||
line_read = (char *)NULL;
|
||||
}
|
||||
|
||||
/* Get a line from the user. */
|
||||
|
||||
Reference in New Issue
Block a user