mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-15 04:39:42 +03:00
coap_openssl.c: removed dead code from coap_dgram_ctrl()
The dead code detected by Coverity scan in CID 1458395 has been replaced with explicitly setting the return value to 1 (the default that has previously been used).
This commit is contained in:
1 parent
a569e16584
commit
1f51ba7636
1 file changed
+1
-2
+1
-2
@@ -150,8 +150,7 @@ static long coap_dgram_ctrl(BIO *a, int cmd, long num, void *ptr) {
|
||||
break;
|
||||
case BIO_CTRL_SET_CLOSE:
|
||||
BIO_set_shutdown(a, (int)num);
|
||||
break;
|
||||
ret = 0;
|
||||
ret = 1;
|
||||
break;
|
||||
case BIO_CTRL_DGRAM_SET_PEEK_MODE:
|
||||
data->peekmode = (unsigned)num;
|
||||
|
||||
Reference in new issue
Block a user