Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2012-12-20 16:01:45 +0400
committerAlexey Shchepin <alexey@process-one.net>2012-12-20 16:01:45 +0400
commitd5506a3ff0606c32997b8aaa30946fac30311796 (patch)
tree3756e8d7bd9c6da54064e177fa83a91863228d72
parentd81eb95cab790e881a2afd3a3eef17a6d855778c (diff)
Fixed signedness issue in tls_drv GET_DESCRYPTED_INPUT (EJAB-1591)
-rw-r--r--src/tls/tls_drv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tls/tls_drv.c b/src/tls/tls_drv.c
index b79d30c03..e71ba12c2 100644
--- a/src/tls/tls_drv.c
+++ b/src/tls/tls_drv.c
@@ -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;