]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: ssl: don't allocate shctx several time
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 28 Nov 2017 10:04:43 +0000 (11:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 Nov 2017 11:04:16 +0000 (12:04 +0100)
commitc3cd35f96cbb6739dace9906448c5a68f554d96e
tree90640d64d9ff46820c6663d7b5d6f050d559ed84
parentb61028549e51b58abdafcf652ee2871767307a62
BUG/MEDIUM: ssl: don't allocate shctx several time

The shctx_init() function does not check anymore if the pointer is not
NULL, this check must be done is the caller.

The consequence was to allocate one shctx per ssl bind.

Bug introduced by 4f45bb9 ("MEDIUM: shctx: separate ssl and shctx")

Thanks to Maciej Zdeb for reporting this bug.

Must be backported to 1.8.
src/ssl_sock.c