CVS update: samba/source/rpc_parse

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_parse
In directory va:/tmp/cvs-serv25776/rpc_parse

Modified Files:
	parse_misc.c parse_net.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:
parse_misc.c		1.82 => 1.83
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_parse/parse_misc.c?r1=1.82&r2=1.83
parse_net.c		1.55 => 1.56
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_parse/parse_net.c?r1=1.55&r2=1.56




More information about the samba-cvs mailing list