MINOR: ssl: fix possible null dereference in error handling
authorWilliam Dauchy <w.dauchy@criteo.com>
Sat, 23 Nov 2019 20:14:33 +0000 (21:14 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Sat, 23 Nov 2019 20:38:15 +0000 (21:38 +0100)
commit5f1fa7db86c53827c97f8a8c3f5fa75bfcb5be9a
tree7008972a289fe9cc766e9f785db25ffb7aa7359c
parent579d83b05f98e061c535537169ce39b7271c3efe
MINOR: ssl: fix possible null dereference in error handling

recent commit 8b453912ce9a ("MINOR: ssl: ssl_sock_prepare_ctx() return an error code")
converted all errors handling; in this patch we always test `err`, but
three of them are missing. I did not found a plausible explanation about
it.

this should fix issue #374

Fixes: 8b453912ce9a ("MINOR: ssl: ssl_sock_prepare_ctx() return an error code")
Reported-by: Илья Шипицин <chipitsine@gmail.com>
Signed-off-by: William Dauchy <w.dauchy@criteo.com>
src/ssl_sock.c