dirmngr: Simplify error returning inside http.c.
authorWerner Koch <wk@gnupg.org>
Tue, 24 Jan 2017 17:41:43 +0000 (18:41 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 24 Jan 2017 19:52:24 +0000 (20:52 +0100)
commit51e5a5e5a46279809848b4ab4419f35045336010
tree24348548f7bb4f093e07a1610dbbab5baddc5f9c
parent72736af86a501592d974d46ff754a63959e183bd
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>
dirmngr/http.c