25
1
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:
Alexey Shchepin 2012-12-20 14:01:45 +02:00
parent d81eb95cab
commit d5506a3ff0

View File

@ -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;