summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-04-14 23:04:35 +0000
committerStef Walter <stef@memberwebs.com>2005-04-14 23:04:35 +0000
commit1226811e4aead186d1c94dd190c6a40ea4ec4c2d (patch)
tree312c58ba08ba99d8d2968b59bfd54c7962ad29f8
parentdc643c1f0158a8a30ea60bea30138c3d402d4b94 (diff)
Fix problem when header is missing.
-rw-r--r--ChangeLog3
-rw-r--r--common/smtppass.c2
-rw-r--r--configure.in4
3 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2539c92..e5e171d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+1.4.1 [2005-04-15]
+ - Fixed bug (introduced in 1.4) when Header was not present.
+
1.4 [2005-03-24]
- Documentation fixes [Sean Franklin]
- Don't leak file descriptors when clamsmtpd can't connect to outgoing
diff --git a/common/smtppass.c b/common/smtppass.c
index dfa0176..e5b88b9 100644
--- a/common/smtppass.c
+++ b/common/smtppass.c
@@ -1457,6 +1457,8 @@ int sp_done_data(spctx_t* ctx)
ASSERT(ctx->cachename[0]); /* Must still be around */
ASSERT(!ctx->cachefile); /* File must be closed */
+ memset(header, 0, sizeof(header));
+
/* Open the file */
file = fopen(ctx->cachename, "r");
if(file == NULL)
diff --git a/configure.in b/configure.in
index 2975325..7f59ab4 100644
--- a/configure.in
+++ b/configure.in
@@ -36,8 +36,8 @@ dnl Nate Nielsen <nielsen@memberwebs.com>
dnl
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(clamsmtp, 1.4, nielsen@memberwebs.com)
-AM_INIT_AUTOMAKE(clamsmtp, 1.4)
+AC_INIT(clamsmtp, 1.4.1, nielsen@memberwebs.com)
+AM_INIT_AUTOMAKE(clamsmtp, 1.4.1)
LDFLAGS="$LDFLAGS -L/usr/local/lib"
CFLAGS="$CFLAGS -I/usr/local/include"