wct = CVAL(buf, smb_wct);
vwv = (const uint16_t *)(buf + smb_vwv);
num_bytes = smb_buflen(buf);
- bytes = (uint8_t *)smb_buf_const(buf);
+ bytes = (const uint8_t *)smb_buf_const(buf);
if (!fn(cmd, wct, vwv, num_bytes, bytes, private_data)) {
return false;