diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/ChangeLog | 1 | ||||
-rw-r--r-- | common/http.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/common/ChangeLog b/common/ChangeLog index 7c8c0ba72..6cd136c5d 100644 --- a/common/ChangeLog +++ b/common/ChangeLog @@ -3,6 +3,7 @@ * http.c (http_get_header): New. (capitalize_header_name, store_header): New. (parse_response): Store headers away. + (send_request): Return GPG_ERR_NOT_FOUND if connect_server failed. * http.h: New flag HTTP_FLAG_NEED_HEADER. 2006-08-21 Werner Koch <[email protected]> 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 |