aboutsummaryrefslogtreecommitdiffstats
path: root/common/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/http.c')
-rw-r--r--common/http.c4
1 files changed, 3 insertions, 1 deletions
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