Skip to content

Commit

Permalink
SMB: Fix a data size mismatch that broke SMB on big-endian platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Monnerat committed Dec 8, 2014
1 parent dcd484a commit dca257f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/smb.c
Expand Up @@ -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);
Expand Down

0 comments on commit dca257f

Please sign in to comment.