mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Make sure that res is initialized in all cases
This commit is contained in:
parent
91964b1aba
commit
09c75af15c
@ -443,6 +443,8 @@ static ErlDrvSSizeT tls_drv_control(ErlDrvData handle,
|
||||
b = driver_alloc_binary(size);
|
||||
b->orig_bytes[0] = 0;
|
||||
|
||||
res = 0;
|
||||
|
||||
while ((req_size == 0 || rlen < req_size + 1) &&
|
||||
(res = SSL_read(d->ssl,
|
||||
b->orig_bytes + rlen,
|
||||
|
Loading…
Reference in New Issue
Block a user