From 271ddd99d7ee2b091f385401688a2d1f1063b6d0 Mon Sep 17 00:00:00 2001 From: Stephen Bennett Date: Sat, 30 Jan 2010 19:57:35 +0000 Subject: [PATCH] Be sure to zero out host buffer before using it --- extensions/sasl_usercloak.c | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/sasl_usercloak.c b/extensions/sasl_usercloak.c index fe620f34..d627b200 100644 --- a/extensions/sasl_usercloak.c +++ b/extensions/sasl_usercloak.c @@ -49,6 +49,7 @@ check_new_user(void *vdata) return; char buf[HOSTLEN]; + memset(buf, 0, sizeof(buf)); char *dst = buf; strncpy(buf, source_p->host, accountpart - source_p->host);