From 7e73a6c27ec7246c7181bbcb5973e9458640f54a 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(+) 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