aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-11-14 22:54:51 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-11-14 22:54:51 +0000
commitcdd6a567ea8b77e6636e8368822b253fb622a025 (patch)
tree7032654097d5b0569656a1dfe696a31afa957195 /fetchmail.h
parentb77c02e7a26df60c7793ce0a4a60e1a95417f4e9 (diff)
downloadfetchmail-cdd6a567ea8b77e6636e8368822b253fb622a025.tar.gz
fetchmail-cdd6a567ea8b77e6636e8368822b253fb622a025.tar.bz2
fetchmail-cdd6a567ea8b77e6636e8368822b253fb622a025.zip
Sunil Shetye fixed these problems in a patch posted to fetchmail-devel:
1. parsed_host is not freed in some cases. This happens when the first smtp server is down in this setup: poll mailserver ... smtphost "smtpserver1" "smtpserver2" ... 2. parsed_host is being initialized for UNIX socket also. For UNIX socket, parsed_host should be NULL. 3. If EHLO fails on a UNIX socket, it tries HELO on a network socket! 4. ctl->destaddr is allocated memory in two cases. This memory is never freed. 5. ctl->destaddr was being assigned in a very convoluted manner. Since, parsed_host is already set correctly now, it can be used directly. svn path=/trunk/; revision=4443
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetchmail.h b/fetchmail.h
index b2c0ff77..3b673865 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -337,7 +337,7 @@ struct query
/* internal use -- per-poll state */
flag active; /* should we actually poll this server? */
- const char *destaddr; /* destination host for this query */
+ char *destaddr; /* destination host for this query */
int errcount; /* count transient errors in last pass */
int authfailcount; /* count of authorization failures */
int wehaveauthed; /* We've managed to logon at least once! */