summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lau <[email protected]>2025-07-12 21:39:54 +0800
committerTimo Rothenpieler <[email protected]>2025-07-17 02:35:07 +0200
commitdda91b87e86b9261860e0ffa24ffc3fbe2c5b662 (patch)
tree7afdf4e3122b198c5acdc5fa7e3b78f34680c2e5
parent7bd3bdbd6224989edce7f27dd1e25bf25b1be619 (diff)
avformat/tls_openssl: replace 1 with TLS_ST_OK to be more clear
Signed-off-by: Jack Lau <[email protected]> Signed-off-by: Timo Rothenpieler <[email protected]>
-rw-r--r--libavformat/tls_openssl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c
index d6d102f8bb..e7792575c3 100644
--- a/libavformat/tls_openssl.c
+++ b/libavformat/tls_openssl.c
@@ -717,7 +717,8 @@ static int dtls_handshake(URLContext *h)
av_log(p, AV_LOG_TRACE, "Handshake success, r0=%d\n", r0);
}
- if (SSL_is_init_finished(p->ssl) != 1)
+ /* Check whether the handshake is completed. */
+ if (SSL_is_init_finished(p->ssl) != TLS_ST_OK)
goto end;
ret = 0;