The branch, master has been updated
via 054ef88b036cd1601ac658f004bc9889a302f119 (commit)
via bb4cffbd97793c9ea1001571639ff12348644ae4 (commit)
from bccef8251654f52751ad65e9906323a73c47fdb4 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 054ef88b036cd1601ac658f004bc9889a302f119
Author: Volker Lendecke <[email protected]>
Date: Mon Jun 8 09:46:52 2009 +0200
Fix a valgrind error in "net rap user add"
commit bb4cffbd97793c9ea1001571639ff12348644ae4
Author: Volker Lendecke <[email protected]>
Date: Mon Jun 8 09:45:21 2009 +0200
Fix bug 6449
Thanks to TAKAHASHI Motonobu <[email protected]> for reporting!
-----------------------------------------------------------------------
Summary of changes:
source3/utils/net_rap.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c
index dd757ab..88db512 100644
--- a/source3/utils/net_rap.c
+++ b/source3/utils/net_rap.c
@@ -822,10 +822,11 @@ static int rap_user_add(struct net_context *c, int argc,
const char **argv)
userinfo.userflags = c->opt_flags;
userinfo.reserved1 = '\0';
- userinfo.comment = smb_xstrdup(c->opt_comment);
+ userinfo.comment = smb_xstrdup(c->opt_comment ? c->opt_comment : "");
userinfo.priv = 1;
userinfo.home_dir = NULL;
userinfo.logon_script = NULL;
+ userinfo.passwrd[0] = '\0';
ret = cli_NetUserAdd(cli, &userinfo);
--
Samba Shared Repository