]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-http: http_client_request_unref() now always sets *req=NULL
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 22 Feb 2016 18:34:46 +0000 (20:34 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 22 Feb 2016 18:35:49 +0000 (20:35 +0200)
commitd1f964d3f1dd9c5868b134c4f44dd63f3722eef7
treef2d76377e4258bc2058b4dcf205109eed47731f0
parent1dead6eacb9302a8419bfc8f4b571ea9a3c00296
lib-http: http_client_request_unref() now always sets *req=NULL

This makes its behavior consistent with other APIs in Dovecot.

Also http_client_request_finish() no longer sets req=NULL, because all of
its callers already keep a reference. Instead added an assert to make sure
the reference is there.
src/lib-http/http-client-connection.c
src/lib-http/http-client-private.h
src/lib-http/http-client-request.c