svn commit: samba r19451 - in branches/SAMBA_3_0/source/rpcclient: .

Guenther Deschner gd at samba.org
Tue Oct 24 12:09:13 GMT 2006


Thanks Volker, 

I owed Jerry that change still - and owe him still much more...

Thanks again,
Guenther

On Sun, Oct 22, 2006 at 10:30:46AM +0000, vlendec at samba.org wrote:
> Author: vlendec
> Date: 2006-10-22 10:30:46 +0000 (Sun, 22 Oct 2006)
> New Revision: 19451
> 
> WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19451
> 
> Log:
> Another cleanup of 18802. Referring to structures after the block has been
> left is not a good idea.
> 
> Volker
> 
> Modified:
>    branches/SAMBA_3_0/source/rpcclient/cmd_srvsvc.c
> 
> 
> Changeset:
> Modified: branches/SAMBA_3_0/source/rpcclient/cmd_srvsvc.c
> ===================================================================
> --- branches/SAMBA_3_0/source/rpcclient/cmd_srvsvc.c	2006-10-22 10:01:55 UTC (rev 19450)
> +++ branches/SAMBA_3_0/source/rpcclient/cmd_srvsvc.c	2006-10-22 10:30:46 UTC (rev 19451)
> @@ -243,6 +243,9 @@
>                                            int argc, const char **argv)
>  {
>  	uint32 info_level = 2;
> +	struct srvsvc_NetShareCtr1 ctr1;
> +	struct srvsvc_NetShareCtr2 ctr2;
> +	struct srvsvc_NetShareCtr502 ctr502;
>  	union srvsvc_NetShareCtr ctr;
>  	NTSTATUS result;
>  	uint32 hnd;
> @@ -263,20 +266,17 @@
>  
>  	switch (info_level) {
>  	case 1: {
> -		struct srvsvc_NetShareCtr1 ctr1;
>  		ZERO_STRUCT(ctr1);
>  		ctr.ctr1 = &ctr1;
>  		}
>  		break;
>  
>  	case 2: {
> -		struct srvsvc_NetShareCtr2 ctr2;
>  		ZERO_STRUCT(ctr2);
>  		ctr.ctr2 = &ctr2;
>  		}
>  		break;
>  	case 502: {
> -		struct srvsvc_NetShareCtr502 ctr502;
>  		ZERO_STRUCT(ctr502);
>  		ctr.ctr502 = &ctr502;
>  		}

-- 
Günther Deschner                    GPG-ID: 8EE11688
Novell / SUSE Labs                        gd at suse.de
Samba Team                              gd at samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-cvs/attachments/20061024/0f4180ee/attachment.bin


More information about the samba-cvs mailing list