MINOR: httpclient: destroy checks if a client was started but not stopped
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 5 Oct 2021 13:50:45 +0000 (15:50 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 6 Oct 2021 13:15:03 +0000 (15:15 +0200)
commit2a879001b5ce4b3cf3998c49a2886651e69fcf45
tree55a5485646f24f3701131c1c7ba86cfcd1495f57
parent4d601848871c38cca3182ab2edee932eaf1a531e
MINOR: httpclient: destroy checks if a client was started but not stopped

During httpclient_destroy, add a condition in the BUG_ON which checks
that the client was started before it has ended. A httpclient structure
could have been created without being started.
include/haproxy/http_client.h
src/http_client.c