mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Fixed signedness issue in tls_drv GET_DESCRYPTED_INPUT (EJAB-1591)
This commit is contained in:
parent
d81eb95cab
commit
d5506a3ff0
@ -534,8 +534,9 @@ static ErlDrvSSizeT tls_drv_control(ErlDrvData handle,
|
||||
size_t req_size = 0;
|
||||
if (len == 4)
|
||||
{
|
||||
unsigned char *b = (unsigned char *)buf;
|
||||
req_size =
|
||||
(buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3];
|
||||
(b[0] << 24) | (b[1] << 16) | (b[2] << 8) | b[3];
|
||||
}
|
||||
size = BUF_SIZE + 1;
|
||||
rlen = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user