Patch to cli_pipe.c

Andrew Bartlett abartlet at samba.org
Mon Jul 14 12:57:04 GMT 2003


On Mon, Jul 14, 2003 at 08:46:05AM -0400, Ken Cross wrote:
> Samba-folk:
> 
> This morning I got this error:
> 
> rpc_client/cli_pipe.c: In function `rpc_api_pipe_req':
> rpc_client/cli_pipe.c:993: parse error before `int'
> rpc_client/cli_pipe.c:997: `auth_level' undeclared (first use in this
> function)
> rpc_client/cli_pipe.c:997: (Each undeclared identifier is reported only once
> rpc_client/cli_pipe.c:997: for each function it appears in.)
> rpc_client/cli_pipe.c:1003: `auth_type' undeclared (first use in this
> function)
> 
> 
> The fix is pretty simple (move prs_align_uint on line 993 down 2 lines):
> 
> RCS file: /cvsroot/samba/source/rpc_client/cli_pipe.c,v
> retrieving revision 1.79.2.26
> diff -p -u -r1.79.2.26 cli_pipe.c
> --- rpc_client/cli_pipe.c       14 Jul 2003 08:46:32 -0000      1.79.2.26
> +++ rpc_client/cli_pipe.c       14 Jul 2003 12:44:49 -0000
> @@ -989,9 +989,9 @@ BOOL rpc_api_pipe_req(struct cli_state *
>  
>                 if (cli->pipe_auth_flags) {
>                         size_t data_and_padding_size;
> -                       prs_align_uint64(&sec_blob);
>                         int auth_type = 0;
>                         int auth_level = 0;
> +                       prs_align_uint64(&sec_blob);

Grr.. I keep doing that...

Fixed..

Andrew Bartlett



More information about the samba-technical mailing list