From 2d90aaaf306cbffc06a145f26048f06e8863498d Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 20 May 2013 10:28:25 -0700 Subject: [PATCH] Wipe the whole buffer containing the DNS name, not the size of its pointer --- src/iodined.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iodined.c b/src/iodined.c index b3b0607..8fcbe00 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -2023,7 +2023,7 @@ write_dns_nameenc(char *buf, size_t buflen, char *data, int datalen, char downen space = MIN(0xFF, buflen) - 4 - 2; /* -1 encoding type, -3 ".xy", -2 for safety */ - memset(buf, 0, sizeof(buf)); + memset(buf, 0, buflen); if (downenc == 'S') { buf[0] = 'i';