Changeset 134 for branches/samba-3.0/source/libsmb/cliconnect.c
- Timestamp:
- May 23, 2008, 6:56:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/libsmb/cliconnect.c
r124 r134 250 250 p += clistr_push(cli, p, pass, -1, STR_TERMINATE); /* password */ 251 251 SSVAL(cli->outbuf,smb_vwv7,PTR_DIFF(p, smb_buf(cli->outbuf))); 252 } 253 else { 252 } else { 253 /* For ucs2 passwords clistr_push calls ucs2_align, which causes 254 * the space taken by the unicode password to be one byte too 255 * long (as we're on an odd byte boundary here). Reduce the 256 * count by 1 to cope with this. Fixes smbclient against NetApp 257 * servers which can't cope. Fix from 258 * bryan.kolodziej@allenlund.com in bug #3840. 259 */ 254 260 p += clistr_push(cli, p, pass, -1, STR_UNICODE|STR_TERMINATE); /* unicode password */ 255 SSVAL(cli->outbuf,smb_vwv8,PTR_DIFF(p, smb_buf(cli->outbuf)) );261 SSVAL(cli->outbuf,smb_vwv8,PTR_DIFF(p, smb_buf(cli->outbuf))-1); 256 262 } 257 263 … … 1027 1033 1028 1034 return NT_STATUS_OK; 1029 1030 1035 } 1031 1036
Note:
See TracChangeset
for help on using the changeset viewer.