diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-09-17 04:23:48 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-09-17 04:23:48 +0000 |
commit | 23af0743267d250a90af77c3bbce4d5fd0cdcc00 (patch) | |
tree | 61e3a082757066c96d1ab0e092a04ba9c5b328c6 /source3/lib | |
parent | 81fdc3c3f76075babe3e1f4bf43ed2cfd5723472 (diff) | |
download | samba-23af0743267d250a90af77c3bbce4d5fd0cdcc00.tar.gz samba-23af0743267d250a90af77c3bbce4d5fd0cdcc00.tar.bz2 samba-23af0743267d250a90af77c3bbce4d5fd0cdcc00.zip |
fixed ctemp in server and client. It turns out that ctemp on NT is completely broken, and it's pointless to emulate their brokenness completely in this case, but at least this makes us use approximately the same packet format. The spec is complelet wrong in this case
(This used to be commit 2d507ec669def6d49304559e53d6c14af9b290a9)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 3d2de63f38..0eaf7c01fc 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -335,20 +335,21 @@ int set_message(char *buf,int num_words,int num_bytes,BOOL zero) /******************************************************************* setup only the byte count for a smb message ********************************************************************/ -void set_message_bcc(char *buf,int num_bytes) +int set_message_bcc(char *buf,int num_bytes) { int num_words = CVAL(buf,smb_wct); SSVAL(buf,smb_vwv + num_words*SIZEOFWORD,num_bytes); smb_setlen(buf,smb_size + num_words*2 + num_bytes - 4); + return (smb_size + num_words*2 + num_bytes); } /******************************************************************* setup only the byte count for a smb message, using the end of the message as a marker ********************************************************************/ -void set_message_end(void *outbuf,void *end_ptr) +int set_message_end(void *outbuf,void *end_ptr) { - set_message_bcc((char *)outbuf,PTR_DIFF(end_ptr,smb_buf((char *)outbuf))); + return set_message_bcc((char *)outbuf,PTR_DIFF(end_ptr,smb_buf((char *)outbuf))); } /******************************************************************* |