diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_rpc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 2ccc92876b..c112a15e76 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -369,7 +369,9 @@ static NTSTATUS rpc_oldjoin_internals(struct net_context *c, } fstrcpy(trust_passwd, lp_netbios_name()); - strlower_m(trust_passwd); + if (!strlower_m(trust_passwd)) { + return NT_STATUS_UNSUCCESSFUL; + } /* * Machine names can be 15 characters, but the max length on |