aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fetchmail.c1
-rw-r--r--options.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 723257f9..9652dab3 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -533,6 +533,7 @@ static int load_params(int argc, char **argv, int optind)
struct query def_opts, *ctl, *mp;
memset(&def_opts, '\0', sizeof(struct query));
+ def_opts.smtp_socket = -1;
def_opts.server.protocol = P_AUTO;
def_opts.server.timeout = CLIENT_TIMEOUT;
diff --git a/options.c b/options.c
index 74893519..dc39b284 100644
--- a/options.c
+++ b/options.c
@@ -122,6 +122,7 @@ struct query *ctl; /* option record to be initialized */
cmd_daemon = -1;
memset(ctl, '\0', sizeof(struct query)); /* start clean */
+ ctl->smtp_socket = -1;
while (!errflag &&
(c = getopt_long(argc,argv,shortoptions,