smbd: Fix a const warning
[asn/samba.git] / source3 / smbd / process.c
index 484832b20063a260315168a7d3b9b283b1be048e..5ef0fd335e2a491e0b781154e04775b4f063075f 100644 (file)
@@ -2133,7 +2133,7 @@ bool smb1_walk_chain(const uint8_t *buf,
        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;