diff options
author | Stef Walter <stef@memberwebs.com> | 2005-03-20 21:03:35 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2005-03-20 21:03:35 +0000 |
commit | 60306fafee0df1943226d97ea1cff87dedc37e05 (patch) | |
tree | 6822f4975a114893629ecba821c203fca6972386 | |
parent | 45ed6073097ba4081d52fd2667e47d82d5d6d3ad (diff) |
Fix compatibility problems with old ScanHeader option.
-rw-r--r-- | src/clamsmtpd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clamsmtpd.c b/src/clamsmtpd.c index f9f1bf8..56a9f95 100644 --- a/src/clamsmtpd.c +++ b/src/clamsmtpd.c @@ -167,15 +167,15 @@ int main(int argc, char* argv[]) memset(&g_clstate, 0, sizeof(g_clstate)); g_clstate.directory = _PATH_TMP; - /* Setup a default header */ - sp_parse_option(CFG_HEADER, DEFAULT_HEADER); - /* We need the default to parse into a useable form, so we do this: */ r = cb_parse_option(CFG_CLAMADDR, DEFAULT_CLAMAV); ASSERT(r == 1); sp_init("clamsmtpd"); + /* Setup a default header */ + sp_parse_option(CFG_HEADER, DEFAULT_HEADER); + /* * We still accept our old arguments for compatibility reasons. * We fill them into the spstate structure directly @@ -401,7 +401,7 @@ int cb_parse_option(const char* name, const char* value) { /* Pass old format header option through */ warnx("please use \"Header\" option instead of \"ScanHeader\""); - return sp_parse_option(CFG_HEADER, optarg); + return sp_parse_option(CFG_HEADER, value); } else if(strcasecmp(CFG_DIRECTORY, name) == 0) |