From e4e3293b482d48bc6a503e1280fe2a20556548ef Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 10 Dec 2012 17:36:39 +0100 Subject: s3-net: Check the return value of strlower_m(). Found by Coverity. Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- source3/utils/net_rpc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit