diff options
Diffstat (limited to 'source4/libcli/auth')
-rw-r--r-- | source4/libcli/auth/smbencrypt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/libcli/auth/smbencrypt.c b/source4/libcli/auth/smbencrypt.c index 00a28a1ad9..f2b6eb00d7 100644 --- a/source4/libcli/auth/smbencrypt.c +++ b/source4/libcli/auth/smbencrypt.c @@ -121,6 +121,14 @@ BOOL ntv2_owf_gen(const uint8_t owf[16], return False; } + if (!user_in) { + user_in = ""; + } + + if (!domain_in) { + domain_in = ""; + } + user_in = strupper_talloc(mem_ctx, user_in); if (user_in == NULL) { talloc_free(mem_ctx); |