]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: ssl: Don't do anything in ssl_subscribe if we have no ctx.
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 24 Jun 2019 16:57:39 +0000 (18:57 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 24 Jun 2019 17:00:16 +0000 (19:00 +0200)
commit0ff28651c184f2b6cc7782b0960ed69cc907ca97
treea90e6f7449c469d06c2d3b968d6f9acbb3ac8596
parent6c6dc58da0dd868dd8ac3e8c7aa623d1bd4ddc40
BUG/MEDIUM: ssl: Don't do anything in ssl_subscribe if we have no ctx.

In ssl_subscribe(), make sure we have a ssl_sock_ctx before doing anything.
When ssl_sock_close() is called, it wakes any subscriber up, and that
subscriber may decide to subscribe again, for some reason. If we no longer
have a context, there's not much we can do.

This should be backported to 2.0.
src/ssl_sock.c