History

avformat/tls_openssl: avoid unusual inline-if style

Timo Rothenpieler committed 1 year ago

Commit e6d2c671 parent abb274b1 file · +5 −2Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/tls_openssl.c+5−2
@@ -879,8 +879,11 @@ static int dtls_start(URLContext *h, const char *url, int flags, AVDictionary ** · 878 unmodified lines
879879 }
880880 }
881881
882− /* Setup DTLS as passive, which is server role. */
883− c->listen ? SSL_set_accept_state(p->ssl) : SSL_set_connect_state(p->ssl);
882+ /* This seems to be neccesary despite explicitly setting client/server method above. */
883+ if (c->listen)
884+ SSL_set_accept_state(p->ssl);
885+ else
886+ SSL_set_connect_state(p->ssl);
884887
885888 /**
886889 * During initialization, we only need to call SSL_do_handshake once because SSL_read consumes

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t