From 1226811e4aead186d1c94dd190c6a40ea4ec4c2d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 14 Apr 2005 23:04:35 +0000 Subject: Fix problem when header is missing. --- ChangeLog | 3 +++ common/smtppass.c | 2 ++ configure.in | 4 ++-- 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 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" -- cgit v1.2.3