Mercurial > dovecot > core-2.2
changeset 19918:e7fb4e09d051
doveadm-http: Fixed crash when no authentication was configured.
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Thu, 03 Mar 2016 11:53:05 +0200 |
parents | 1ef6401c749d |
children | 126a81a431d2 |
files | src/doveadm/client-connection-http.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/client-connection-http.c Thu Mar 03 00:15:30 2016 +0200 +++ b/src/doveadm/client-connection-http.c Thu Mar 03 11:53:05 2016 +0200 @@ -640,7 +640,7 @@ /* no authentication specified */ if (doveadm_settings->doveadm_api_key[0] == '\0' && *conn->client.set->doveadm_password == '\0') { - http_server_request_fail_close(conn->http_server_request, 500, "Internal Server Error"); + conn->http_response = http_server_response_create(conn->http_server_request, 500, "Internal Server Error"); i_error("No authentication defined in configuration. Add API key or password"); return FALSE; }