Skip to content

Commit

Permalink
pop3: rename login_client_connected() client arg to login_client
Browse files Browse the repository at this point in the history
This makes the next commit cleaner.
  • Loading branch information
Josef 'Jeff' Sipek authored and villesavolainen committed Jun 16, 2017
1 parent 2e2048d commit 914c9cb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/pop3/main.c
Expand Up @@ -169,7 +169,7 @@ static void main_stdio_run(const char *username)
}

static void
login_client_connected(const struct master_login_client *client,
login_client_connected(const struct master_login_client *login_client,
const char *username, const char *const *extra_fields)
{
struct mail_storage_service_input input;
Expand All @@ -178,17 +178,17 @@ login_client_connected(const struct master_login_client *client,

i_zero(&input);
input.module = input.service = "pop3";
input.local_ip = client->auth_req.local_ip;
input.remote_ip = client->auth_req.remote_ip;
input.local_ip = login_client->auth_req.local_ip;
input.remote_ip = login_client->auth_req.remote_ip;
input.username = username;
input.userdb_fields = extra_fields;
input.session_id = client->session_id;
input.session_id = login_client->session_id;

buffer_create_from_const_data(&input_buf, client->data,
client->auth_req.data_size);
if (client_create_from_input(&input, client->fd, client->fd,
buffer_create_from_const_data(&input_buf, login_client->data,
login_client->auth_req.data_size);
if (client_create_from_input(&input, login_client->fd, login_client->fd,
&input_buf, &error) < 0) {
int fd = client->fd;
int fd = login_client->fd;

i_error("%s", error);
i_close_fd(&fd);
Expand Down

0 comments on commit 914c9cb

Please sign in to comment.