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