aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'options.c')
-rw-r--r--options.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/options.c b/options.c
index 3d0ab4b9..3d116aa2 100644
--- a/options.c
+++ b/options.c
@@ -222,7 +222,13 @@ struct hostrec *queryctl;
break;
case 'S':
case LA_SMTPHOST:
- strncpy(queryctl->smtphost,optarg,sizeof(queryctl->smtphost)-1);
+ if (fflag)
+ errflag++;
+ else {
+ fflag++;
+ queryctl->output = TO_SMTP;
+ strncpy(queryctl->smtphost,optarg,sizeof(queryctl->smtphost)-1);
+ }
break;
case 'L':
case LA_LOGFILE: