Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3952:d7a0354861b8 HEAD
If authentication client disconnects while it still has pending requests,
don't crash (got broken in the large pointer-change commit).
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 28 Jan 2006 23:09:43 +0200 |
parents | f504dbc84d38 |
children | d9a7ad93ddde |
files | src/auth/auth-request-handler.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-request-handler.c Sat Jan 28 16:07:14 2006 +0200 +++ b/src/auth/auth-request-handler.c Sat Jan 28 23:09:43 2006 +0200 @@ -62,8 +62,11 @@ return; iter = hash_iterate_init(handler->requests); - while (hash_iterate(iter, &key, &value)) - auth_request_unref(value); + while (hash_iterate(iter, &key, &value)) { + struct auth_request *auth_request = value; + + auth_request_unref(&auth_request); + } hash_iterate_deinit(iter); /* notify parent that we're done with all requests */