summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-07-10 09:09:28 +0200
committerStefan Metzmacher <metze@samba.org>2010-07-10 09:35:03 +0200
commit80f9ad4074889bd5acec74316c427ec2b3963006 (patch)
treed337b7d3bacb7c3dfa5d6e444afb945862243eaa /source4
parent751a26214e3d88d2d1bd89787524e7a49c30037f (diff)
downloadsamba-80f9ad4074889bd5acec74316c427ec2b3963006.tar.gz
samba-80f9ad4074889bd5acec74316c427ec2b3963006.tar.bz2
samba-80f9ad4074889bd5acec74316c427ec2b3963006.zip
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
Diffstat (limited to 'source4')
-rw-r--r--source4/winbind/wb_server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/winbind/wb_server.h b/source4/winbind/wb_server.h
index 111aefc624..1ffb62e485 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)