]> granicus.if.org Git - libevent/commit
https-client: correction error checking
authorwenyg <42307321+wenyg@users.noreply.github.com>
Thu, 30 May 2019 09:38:49 +0000 (17:38 +0800)
committerAzat Khuzhin <azat@libevent.org>
Fri, 31 May 2019 21:41:25 +0000 (00:41 +0300)
commit891dd1880fed8c5e1e98f122daeb1ae8414f6b1c
tree6bd92bcd6b4bc4d8be3e3ae83c038b9ee56d8e2a
parentc03dabd76aced01a9c8d253381c2ed6f3ad46b4f
https-client: correction error checking

When connecting to a non-existent HTTPS service, the "req" is not null
but the "evhttp_request_get_response_code(req)" is zero.

Closes: #822 (cherry-picked)
sample/https-client.c