diff options
author | Werner Koch <[email protected]> | 2006-09-06 11:53:24 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2006-09-06 11:53:24 +0000 |
commit | 7b9fa9da99e5e8dd26219a3c501994deee4b794c (patch) | |
tree | 6d30a1b2941bd5d28ebb0294915660b0f1881002 /common | |
parent | Missing file (diff) | |
download | gnupg-7b9fa9da99e5e8dd26219a3c501994deee4b794c.tar.gz gnupg-7b9fa9da99e5e8dd26219a3c501994deee4b794c.zip |
Minor changes and typo fixes.
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 |