enarx-archive / tlssock

A library exposing TLS/DTLS sockets using the POSIX networking APIs
Apache License 2.0
18 stars 7 forks source link

Code review: BIO_meth_set_ctrl() was called repeatedly #43

Open liuqun opened 5 years ago

liuqun commented 5 years ago

BIO_meth_set_ctrl() was called repeatedly in tls-openssl.c

https://github.com/enarx/tlssock/blob/72f2c71db462d68831267d4dc3067818fd7fcc55/lib/tls-openssl.c#L348-L352

The duplicated lines can be removed.