Ignore:
Timestamp:
May 23, 2008, 6:56:41 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.29

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/libsmb/cliconnect.c

    r124 r134  
    250250                p += clistr_push(cli, p, pass, -1, STR_TERMINATE); /* password */
    251251                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                 */
    254260                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);       
    256262        }
    257263       
     
    10271033
    10281034        return NT_STATUS_OK;
    1029 
    10301035}
    10311036
Note: See TracChangeset for help on using the changeset viewer.