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. --- common/smtppass.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/smtppass.c') 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) -- cgit v1.2.3