diff options
author | Ben Kibbey <bjk@luxsci.net> | 2016-09-04 14:22:25 -0400 |
---|---|---|
committer | Ben Kibbey <bjk@luxsci.net> | 2016-09-04 14:22:25 -0400 |
commit | 8ab3b9273524bd344bdb90dd5d3bc8e5f53ead6e (patch) | |
tree | 756d6a98050843f601eef1822435c6d58f8a5559 /src | |
parent | bf39d04238c0ae43f6cf2b04baf394c2f1e1d838 (diff) | |
download | libassuan-8ab3b9273524bd344bdb90dd5d3bc8e5f53ead6e.tar.gz |
EPROTO portability fix.
* src/assuan-socket.c(socks5_connect): Return EPROTONOSUPPORT rather
than EPROTO.
--
OpenBSD, and maybe other systems, doesn't define EPROTO.
Signed-off-by: Ben Kibbey <bjk@luxsci.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/assuan-socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/assuan-socket.c b/src/assuan-socket.c index d5e4ee4..d7616ce 100644 --- a/src/assuan-socket.c +++ b/src/assuan-socket.c @@ -803,7 +803,7 @@ socks5_connect (assuan_context_t ctx, assuan_fd_t sock, if (buffer[0] != 1) { /* SOCKS server returned wrong version. */ - gpg_err_set_errno (EPROTO); + gpg_err_set_errno (EPROTONOSUPPORT); return -1; } if (buffer[1]) @@ -863,7 +863,7 @@ socks5_connect (assuan_context_t ctx, assuan_fd_t sock, { /* Socks server returned wrong version or the reserved field is not zero. */ - gpg_err_set_errno (EPROTO); + gpg_err_set_errno (EPROTONOSUPPORT); return -1; } if (buffer[1]) |