BUG/MINOR: ssl: ckch_inst wrongly inserted in crtlist_entry
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 30 Mar 2020 15:01:33 +0000 (17:01 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 31 Mar 2020 10:32:17 +0000 (12:32 +0200)
commit493983128b8ede5d4aea69d591cf44c4548cd8d3
tree6a90670ae0070a226e757cc6dee702e24a203603
parentad3c37b760db8dd4c0780978244d7f4f2bfbf582
BUG/MINOR: ssl: ckch_inst wrongly inserted in crtlist_entry

The instances were wrongly inserted in the crtlist entries, all
instances of a crt-list were inserted in the last crt-list entry.
Which was kind of handy to free all instances upon error.

Now that it's done correctly, the error path was changed, it must
iterate on the entries and find the ckch_insts which were generated for
this bind_conf. To avoid wasting time, it stops the iteration once it
found the first unsuccessful generation.
include/types/ssl_sock.h
src/ssl_sock.c