CVS update: samba/source/rpc_client

abartlet at samba.org abartlet at samba.org
Wed Jul 11 03:02:02 EST 2001


Date:	Tue Jul 10 10:02:02 2001
Author:	abartlet

Update of /data/cvs/samba/source/rpc_client
In directory va:/tmp/cvs-serv25776/rpc_client

Modified Files:
	cli_login.c 
Log Message:
This fixes security=domain, which has been broke since the big charset
changeover.  For my own sainity I have created a new function to fill out both
the header and buffer for a string in an RPC struct.  This DOES NOT take a
length argument, only the actual string to be placed.

The RPC code is currently littered with code that does init_uni_hdr() followed
immidiatly by init_unistr2(), and often the length argument is wrong.  (It was
for the code I changed, even before the charset stuff).  Another bug where we
made strings AT LEAST MAX_UNICODE_LEN long hid this bug.

This works for loopback connections to Samba, and can't be any more broke than
it was before :-).  (We had double and revese conversions, fun...).

In particular this makes us multibyte complient.

In any case, if there are no objections I will slowly convert other bits of
code to the same system.


Revisions:
cli_login.c		1.34 => 1.35
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_client/cli_login.c?r1=1.34&r2=1.35




More information about the samba-cvs mailing list