chiark / gitweb /
dirmngr: Simplify error returning inside http.c.
authorWerner Koch <wk@gnupg.org>
Tue, 24 Jan 2017 17:41:43 +0000 (18:41 +0100)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
commit6feb2a5a3f3bd2bc146e3c5f447ea364429f1c94
treef4ed60dc44eb8cacce5310f6645141c4792aa173
parentd0c7fb22f928f4ad9dba0b616c6a6a34cbd164bf
dirmngr: Simplify error returning inside http.c.

* dirmngr/http.c (connect_server): Change to return an gpg_error_t
and to store socket at the passed address.
(http_raw_connect, send_request): Adjust accordingly.
--

This change removes cruft from the code and allows to return the error
code from the name lookup.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 51e5a5e5a46279809848b4ab4419f35045336010)

Gbp-Pq: Name 0015-dirmngr-Simplify-error-returning-inside-http.c.patch
dirmngr/http.c