[PATCH] smbd: Fix CID 1343333 Uninitialized variables

Jeremy Allison jra at samba.org
Tue Dec 15 18:18:39 UTC 2015


On Tue, Dec 15, 2015 at 11:29:02AM +0100, Volker Lendecke wrote:
> Hi!
> 
> Review appreciated!

Pushed. Sorry for the error.

> -- 
> 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 37509c0cf308bfc135b4ad57af6e4f470f99e1bf Mon Sep 17 00:00:00 2001
> From: Volker Lendecke <vl at samba.org>
> Date: Tue, 15 Dec 2015 11:06:35 +0100
> Subject: [PATCH] smbd: Fix CID 1343333 Uninitialized variables
> 
> Signed-off-by: Volker Lendecke <vl at samba.org>
> ---
>  source3/smbd/smb2_query_directory.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/source3/smbd/smb2_query_directory.c b/source3/smbd/smb2_query_directory.c
> index 73f2d63..56dab69 100644
> --- a/source3/smbd/smb2_query_directory.c
> +++ b/source3/smbd/smb2_query_directory.c
> @@ -225,7 +225,7 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
>  	uint32_t dirtype = FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_DIRECTORY;
>  	bool dont_descend = false;
>  	bool ask_sharemode = true;
> -	bool wcard_has_wild;
> +	bool wcard_has_wild = false;
>  	struct tm tm;
>  	char *p;
>  
> -- 
> 1.7.9.5
> 




More information about the samba-technical mailing list