The Samba-Bugzilla – Attachment 5064 Details for
Bug 6973
segfault in client tools
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 3.3
0001-s3-Fix-a-segfault-in-net-version-3.3.patch (text/plain), 901 bytes, created by
Volker Lendecke
on 2009-12-07 15:39:30 UTC
(
hide
)
Description:
Patch for 3.3
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2009-12-07 15:39:30 UTC
Size:
901 bytes
patch
obsolete
>From b8fe477518c362e9bb99a717264200e2693a4a61 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Mon, 7 Dec 2009 22:35:35 +0100 >Subject: [PATCH] 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 >--- > source/libsmb/clientgen.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >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; > } > >-- >1.6.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
obnox
:
review+
Actions:
View
Attachments on
bug 6973
: 5064