Browse Source

MT#55283 fix signed/unsigned mixup

Bit fields have been changed to unsigned. Adjust code accordingly.

Warned-by: Coverity
Change-Id: I5e37361f7381a5e6fa7dff557ff3558bf62c2506
pull/1870/head
Richard Fuchs 1 year ago
parent
commit
70d7ebfd64
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/dtls.c

+ 2
- 2
daemon/dtls.c View File

@ -558,7 +558,7 @@ static int try_connect(struct dtls_connection *d) {
int ret, code;
unsigned char buf[0x10000];
__DBG("try_connect(%i)", d->active);
__DBG("try_connect(%u)", d->active);
if (d->connected)
ret = SSL_read(d->ssl, buf, sizeof(buf)); /* retransmission after connected - handshake lost */
@ -734,7 +734,7 @@ int dtls_connection_init(struct dtls_connection *d, struct packet_stream *ps, in
#endif
#endif
d->active = active ? -1 : 0;
d->active = active ? 1 : 0;
random_string(d->tls_id, sizeof(d->tls_id));


Loading…
Cancel
Save