From 80f9ad4074889bd5acec74316c427ec2b3963006 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 10 Jul 2010 09:09:28 +0200 Subject: [PATCH] s4:winbind: let WBSRV_SAMBA3_SET_STRING() initialize the whole buffer We should not send uninitialized bytes to the winbind pipe, this makes also makes valgrind very unhappy. metze --- source4/winbind/wb_server.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/winbind/wb_server.h b/source4/winbind/wb_server.h index 111aefc6249..1ffb62e4859 100644 --- a/source4/winbind/wb_server.h +++ b/source4/winbind/wb_server.h @@ -104,6 +104,7 @@ struct wbsrv_connection { }; #define WBSRV_SAMBA3_SET_STRING(dest, src) do { \ + memset(dest, 0, sizeof(dest));\ safe_strcpy(dest, src, sizeof(dest)-1);\ } while(0) -- 2.34.1