git.samba.org
/
libsmb2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make it possible to use alternative username for the share-enum example
[libsmb2.git]
/
lib
/
init.c
diff --git
a/lib/init.c
b/lib/init.c
index 1a8e2802284d7732af39e5b5053f0bb1a44f844f..aeb198277933745c47b4f80e50d07f71b536f232 100644
(file)
--- a/
lib/init.c
+++ b/
lib/init.c
@@
-386,6
+386,8
@@
static void smb2_set_password_from_file(struct smb2_context *smb2)
char *domain, *user, *password;
int finished;
+ smb2_set_password(smb2, NULL);
+
#ifdef _MSC_UWP
// GetEnvironmentVariable is not available for UWP up to 10.0.16299 SDK
#if defined(NTDDI_WIN10_RS3) && (NTDDI_VERSION >= NTDDI_WIN10_RS3)