input.username = username;
input.userdb_fields = extra_fields;
- if (input.username == NULL) {
- i_error("login client: Username missing from auth reply");
- (void)close(client->fd);
- return;
- }
-
buffer_create_const_data(&input_buf, client->data,
client->auth_req.data_size);
if (client_create_from_input(&input, client->fd, client->fd,
reply.mail_pid = getpid();
o_stream_send(conn->output, &reply, sizeof(reply));
- if (auth_args == NULL) {
+ if (auth_args == NULL || auth_args[0] == NULL) {
+ if (auth_args != NULL)
+ i_error("login client: Username missing from auth reply");
if (close(client->fd) < 0)
i_error("close(fd_read client) failed: %m");
i_free(client);
input.username = username;
input.userdb_fields = extra_fields;
- if (input.username == NULL) {
- i_error("login client: Username missing from auth reply");
- (void)close(client->fd);
- return;
- }
-
buffer_create_const_data(&input_buf, client->data,
client->auth_req.data_size);
if (client_create_from_input(&input, client->fd, client->fd,