aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-05-13 23:42:04 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-05-13 23:42:04 +0000
commit451d98c467f141e7802b91d26869b6e38ee868fc (patch)
tree7db5f650940300bb81cd23ab9d41a312ece63e68 /rcfile_y.y
parent2cbdef3efbe733325aea934ed3ffab9e9ba6175e (diff)
downloadfetchmail-451d98c467f141e7802b91d26869b6e38ee868fc.tar.gz
fetchmail-451d98c467f141e7802b91d26869b6e38ee868fc.tar.bz2
fetchmail-451d98c467f141e7802b91d26869b6e38ee868fc.zip
Change type of socket descriptors from FILE * to int. Change SockGets
to SockRead a la read(2). This is all part of an attempt to deal with embedded NULs in IMAP messages. svn path=/trunk/; revision=992
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index d6266d4d..003854b8 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -330,6 +330,7 @@ static int reset_server(char *name, int skip)
return(FALSE);
memset(&current,'\0',sizeof(current));
+ current.smtp_socket = -1;
save_str(&current.server.names, -1, name);
current.server.skip = skip;
return(TRUE);
@@ -350,6 +351,7 @@ static void user_reset(void)
save = current.server;
memset(&current, '\0', sizeof(current));
+ current.smtp_socket = -1;
current.server = save;
}