[SCM] Samba Shared Repository - branch v3-3-test updated

Karolin Seeger kseeger at samba.org
Tue Dec 8 00:49:29 MST 2009


The branch, v3-3-test has been updated
       via  6aa17a7... s3: Fix a segfault in "net" version 3.3
      from  0a16584... s3-kerberos: fix the build on Mac OS X 10.6.2.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 6aa17a7b82333de674274045f574bf6c0ce72638
Author: Volker Lendecke <vl at samba.org>
Date:   Mon Dec 7 22:35:35 2009 +0100

    s3: Fix a segfault in "net" version 3.3
    
    When neither LOGNAME nor -U is set, "net" and probably other client utils
    segfault. Reported by "vinnix" on irc.
    
    Volker
    
    Fix bug #6973 (segfault in client tools).

-----------------------------------------------------------------------

Summary of changes:
 source/libsmb/clientgen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c
index cb8f827..2dbf67a 100644
--- a/source/libsmb/clientgen.c
+++ b/source/libsmb/clientgen.c
@@ -408,7 +408,7 @@ void cli_init_creds(struct cli_state *cli, const char *username, const char *dom
 	fstrcpy(cli->domain, domain);
 	fstrcpy(cli->user_name, username);
 	pwd_set_cleartext(&cli->pwd, password);
-	if (!*username) {
+	if ((username == NULL) || (!*username)) {
 		cli->pwd.null_pwd = true;
 	}
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list