rfc2553_connect_to(): When failing set errno later
authorFabian Keil <fk@fabiankeil.de>
Sun, 23 Aug 2020 16:26:19 +0000 (18:26 +0200)
committerFabian Keil <fk@fabiankeil.de>
Tue, 1 Sep 2020 10:22:42 +0000 (12:22 +0200)
commit66e714b2eaf3e446db9c02f8db78dad9bc7ac62f
tree21224eda2da48da62c01fa5b557b214cdd808ccc
parent7c7eac4808f49d1b7bba67ade896788d25f7baa6
rfc2553_connect_to(): When failing set errno later

... to reduce the chances that it gets cloberred before
the caller has a chance to read it.

Previously Privoxy could send a "Connection failure" message
instead of the "DNS failure" message.

Sponsored by: Robert Klemme
jbsockets.c