File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ int dtls_connect(DTLSManager *m, SocketAddress *address) {
120120 "Failed to allocate memory for bio: %m" );
121121
122122 BIO_ctrl (bio , BIO_CTRL_DGRAM_SET_CONNECTED , 0 , & address );
123- SSL_set_bio (ssl , bio , bio );
123+ SSL_set_bio (ssl , bio , bio );
124+ m -> bio = TAKE_PTR (bio );
124125
125126 /* Cerification verification */
126127 if (m -> auth_mode != OPEN_SSL_CERTIFICATE_AUTH_MODE_NONE && m -> auth_mode != OPEN_SSL_CERTIFICATE_AUTH_MODE_INVALID ) {
@@ -163,7 +164,6 @@ int dtls_connect(DTLSManager *m, SocketAddress *address) {
163164 /* Set and activate timeouts */
164165 BIO_ctrl (bio , BIO_CTRL_DGRAM_SET_RECV_TIMEOUT , 0 , & timeout );
165166
166- m -> bio = TAKE_PTR (bio );
167167 m -> ssl = TAKE_PTR (ssl );
168168 m -> ctx = ctx ;
169169 m -> fd = fd ;
You can’t perform that action at this time.
0 commit comments