[PATCH] Fix an error return

Jeremy Allison jra at samba.org
Tue Sep 5 16:34:52 UTC 2017


On Tue, Sep 05, 2017 at 04:44:45PM +0200, Volker Lendecke via samba-technical wrote:
> Hi!
> 
> Review appreciated!

LGTM. Pushed !

> -- 
> SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
> phone: +49-551-370000-0, fax: +49-551-370000-9
> AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
> http://www.sernet.de, mailto:kontakt at sernet.de

> From d8bc351442bc1b79b4bf3daa432946b4f481f303 Mon Sep 17 00:00:00 2001
> From: Volker Lendecke <vl at samba.org>
> Date: Tue, 5 Sep 2017 16:43:18 +0200
> Subject: [PATCH] cli_credentials: Fix a return value
> 
> Signed-off-by: Volker Lendecke <vl at samba.org>
> ---
>  auth/credentials/credentials.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/auth/credentials/credentials.c b/auth/credentials/credentials.c
> index 2342d7253cc..152df96ac75 100644
> --- a/auth/credentials/credentials.c
> +++ b/auth/credentials/credentials.c
> @@ -534,7 +534,7 @@ _PUBLIC_ struct samr_Password *cli_credentials_get_nt_hash(struct cli_credential
>  					  password, password_len);
>  		if (converted != sizeof(nt_hash->hash)) {
>  			TALLOC_FREE(nt_hash);
> -			return false;
> +			return NULL;
>  		}
>  	} else {
>  		E_md4hash(password, nt_hash->hash);
> -- 
> 2.11.0
> 




More information about the samba-technical mailing list