From 7b9fa9da99e5e8dd26219a3c501994deee4b794c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 6 Sep 2006 11:53:24 +0000 Subject: Minor changes and typo fixes. --- common/http.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/http.c') diff --git a/common/http.c b/common/http.c index 31f65b6cd..83b6216cc 100644 --- a/common/http.c +++ b/common/http.c @@ -872,7 +872,9 @@ send_request (http_t hd, const char *auth, const char *proxy) if (hd->sock == -1) { xfree (proxy_authstr); - return gpg_error_from_errno (save_errno); + return (save_errno + ? gpg_error_from_errno (save_errno) + : gpg_error (GPG_ERR_NOT_FOUND)); } #ifdef HTTP_USE_GNUTLS -- cgit v1.2.3