]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: client: Fixed assertion failure in http_client_queue_fail().
authorStephan Bosch <stephan@rename-it.nl>
Tue, 28 Oct 2014 23:12:09 +0000 (16:12 -0700)
committerStephan Bosch <stephan@rename-it.nl>
Tue, 28 Oct 2014 23:12:09 +0000 (16:12 -0700)
Don't explicitly clear the request array after looping through all
requests, since new requests may be added during the loop, not only
removed.

src/lib-http/http-client-queue.c

index 1aa348bdff42b0209116eba675fe16ee03985869..cd3e333623dd9c168bf51dcdc8ad5b3cf9d180aa 100644 (file)
@@ -149,7 +149,6 @@ void http_client_queue_fail(struct http_client_queue *queue,
        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: */