Mercurial > dovecot > core-2.2
changeset 10758:fa8a0f453774 HEAD
auth: Don't leak memory if auth client sends a buggy request.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 19 Feb 2010 04:28:07 +0200 |
parents | d3697efd18f3 |
children | 7a7b2cbc6f91 |
files | src/auth/auth-request-handler.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-request-handler.c Fri Feb 19 04:20:25 2010 +0200 +++ b/src/auth/auth-request-handler.c Fri Feb 19 04:28:07 2010 +0200 @@ -366,6 +366,7 @@ i_error("BUG: Authentication client %u " "sent AUTH parameters after 'resp'", handler->client_pid); + auth_request_unref(&request); return FALSE; } @@ -373,6 +374,7 @@ i_error("BUG: Authentication client %u " "didn't specify service in request", handler->client_pid); + auth_request_unref(&request); return FALSE; }