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:
Olaf Bergmann committed 2017-11-03 14:42:05 +01:00
1 parent a569e16584
commit 1f51ba7636
1 file changed
+1 -2
+1 -2
View File
@@ -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;