aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-14 08:20:22 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-14 08:20:22 +0000
commit6f98e2a0e0f7cbc4591537e6f0f85ea385cf1451 (patch)
tree3b6bdd78566942c5d3d8b9a3457f1ff3f8714385
parenta6b586be3027c12b38c2bbda956770bba0f61bc4 (diff)
downloadfetchmail-6f98e2a0e0f7cbc4591537e6f0f85ea385cf1451.tar.gz
fetchmail-6f98e2a0e0f7cbc4591537e6f0f85ea385cf1451.tar.bz2
fetchmail-6f98e2a0e0f7cbc4591537e6f0f85ea385cf1451.zip
Arrange not to save user params after a statement.
svn path=/trunk/; revision=758
-rw-r--r--NEWS3
-rw-r--r--rcfile_y.y1
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index c777713a..cd9c5606 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,9 @@ bugs --
* --quit in root-daemon mode didn't work, fixed this.
+* Ensure that default server parameters get properly zeroed out after each
+ poll or skip statement in .fetchmailrc.
+
There are 188 people on the fetchmail-friends list.
------------------------------------------------------------------------------
diff --git a/rcfile_y.y b/rcfile_y.y
index 9da2769e..b23afdc7 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -79,6 +79,7 @@ statement : SET BATCHLIMIT MAP NUMBER {batchlimit = $4;}
*/
| define_server serverspecs {prc_register(); prc_reset();}
| define_server serverspecs userspecs
+ {memset(&current,'\0',sizeof(current));}
;
define_server : POLL STRING {current.server.names = (struct idlist *)NULL;