aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-06-28 11:04:34 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-06-28 11:04:34 +0000
commit13f1b3693b5f5db62d91a03625eb7fd8aef201da (patch)
treefbd8e27de5b934e160bf008266e484ff86b784b8 /socket.c
parent1b0445caadad8c59d0fc9ead943d4aa3f0f59275 (diff)
downloadfetchmail-13f1b3693b5f5db62d91a03625eb7fd8aef201da.tar.gz
fetchmail-13f1b3693b5f5db62d91a03625eb7fd8aef201da.tar.bz2
fetchmail-13f1b3693b5f5db62d91a03625eb7fd8aef201da.zip
Try to beat a sign-extension bug.
svn path=/trunk/; revision=2912
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index 8c367d0c..f5d98e9a 100644
--- a/socket.c
+++ b/socket.c
@@ -698,7 +698,6 @@ int SSLOpen(int sock, char *mycert, char *mykey, char *servercname )
int SockClose(int sock)
/* close a socket gracefully */
{
- char ch;
#ifdef SSL_ENABLE
SSL *ssl;
@@ -721,6 +720,7 @@ int SockClose(int sock)
* This stops sends but allows receives (effectively, it sends a
* TCP <FIN>). */
if (shutdown(sock, 1) == 0) {
+ char ch;
/* If there is any data still waiting in the queue, discard it.
* Call recv() until either it returns 0 (meaning we received a FIN)
* or any error occurs. This makes sure all data sent by the other