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>
Tue, 14 Feb 2017 00:29:34 +0000 (00:29 +0000)
commit4e4f0a967100a861e048ad589a7959c228b85035
tree8d8b0b95f5ff33d388a22d9b6b4c4a2dcfc6a549
parentcf77343b751b3439f53ad645fd1372c686a881ff
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