diff options
author | Patrick Monnerat <pm@datasphere.ch> | 2014-12-08 15:30:11 +0100 |
---|---|---|
committer | Patrick Monnerat <pm@datasphere.ch> | 2014-12-08 15:30:11 +0100 |
commit | dca257f27ece3ae6d07db8215e89bc0ab22f41a6 (patch) | |
tree | 04e2e1f6e5d64af3a7f2dfff88a782bfc9070840 | |
parent | dcd484a23859a3c7107f81ca9f54fed9d81eb2ca (diff) |
SMB: Fix a data size mismatch that broke SMB on big-endian platforms
-rw-r--r-- | lib/smb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -397,7 +397,7 @@ static CURLcode smb_send_setup(struct connectdata *conn) memset(&msg, 0, sizeof(msg)); msg.word_count = SMB_WC_SETUP_ANDX; msg.andx.command = SMB_COM_NO_ANDX_COMMAND; - msg.max_buffer_size = smb_swap32(MAX_MESSAGE_SIZE); + msg.max_buffer_size = smb_swap16(MAX_MESSAGE_SIZE); msg.max_mpx_count = smb_swap16(1); msg.vc_number = smb_swap16(1); msg.session_key = smb_swap32(smbc->session_key); |