code cleanup

This commit is contained in:
Nikos Mavrogiannopoulos
2014-01-20 22:02:09 +01:00
parent b66e977a6d
commit 30d656ad92
3 changed files with 2 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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. */