dovecot-2.2: lib-http: client: Fixed assertion failure in http_c...

dovecot at dovecot.org dovecot at dovecot.org
Tue Oct 28 23:13:09 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/d92214db89ac
changeset: 18038:d92214db89ac
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Tue Oct 28 16:12:09 2014 -0700
description:
lib-http: client: Fixed assertion failure in http_client_queue_fail().
Don't explicitly clear the request array after looping through all
requests, since new requests may be added during the loop, not only
removed.

diffstat:

 src/lib-http/http-client-queue.c |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r aa5dde56424f -r d92214db89ac src/lib-http/http-client-queue.c
--- a/src/lib-http/http-client-queue.c	Mon Oct 27 21:48:29 2014 -0700
+++ b/src/lib-http/http-client-queue.c	Tue Oct 28 16:12:09 2014 -0700
@@ -149,7 +149,6 @@
 	array_foreach_modifiable(&treqs, req_idx) {
 		http_client_request_error(*req_idx, status, error);
 	}
-	array_clear(req_arr);
 
 	/* all queues should be empty now... unless new requests were submitted
 	   from the callback. this invariant captures it all: */


More information about the dovecot-cvs mailing list