Skip to content

Commit a78234d

Browse files
committed
Fix 'NO_SSL_GLOBAL_LOCK' typos
1 parent e09056b commit a78234d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/tls_openssl/openssl_conn_ops.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ static int openssl_tls_conn_shutdown(struct tcp_connection *c)
288288
LM_DBG("shutdown successful\n");
289289
return 0;
290290
} else if (ret == 0) {
291-
#ifndef NO_SSL_GLOBAL_LO
291+
#ifndef NO_SSL_GLOBAL_LOCK
292292
lock_release(tls_global_lock);
293293
#endif
294294
LM_DBG("first phase of 2-way handshake completed succesfuly\n");
@@ -679,7 +679,7 @@ int openssl_tls_async_connect(struct tcp_connection *con, int fd,
679679

680680
n = SSL_connect(ssl);
681681
if (n > 0) {
682-
#ifndef NO_SSL_GLOBAL_LOC
682+
#ifndef NO_SSL_GLOBAL_LOCK
683683
lock_release(tls_global_lock);
684684
#endif
685685

@@ -693,7 +693,7 @@ int openssl_tls_async_connect(struct tcp_connection *con, int fd,
693693
return 1;
694694
} else if (n == 0) {
695695
err = SSL_get_error(ssl, n);
696-
#ifndef NO_SSL_GLOBAL_LOC
696+
#ifndef NO_SSL_GLOBAL_LOCK
697697
lock_release(tls_global_lock);
698698
#endif
699699

@@ -833,7 +833,7 @@ int openssl_tls_write(struct tcp_connection *c, int fd, const void *buf,
833833

834834
ret = SSL_write(ssl, buf, len);
835835
if (ret > 0) {
836-
#ifndef NO_SSL_GLOBAL_LOC
836+
#ifndef NO_SSL_GLOBAL_LOCK
837837
lock_release(tls_global_lock);
838838
#endif
839839

@@ -1033,22 +1033,22 @@ static int openssl_read(struct tcp_connection *c, void *buf, size_t len)
10331033

10341034
ssl = c->extra_data;
10351035

1036-
#ifndef NO_SSL_GLOBAL_LO
1036+
#ifndef NO_SSL_GLOBAL_LOCK
10371037
lock_get(tls_global_lock);
10381038
#endif
10391039

10401040
ERR_clear_error();
10411041

10421042
ret = SSL_read(ssl, buf, len);
10431043
if (ret > 0) {
1044-
#ifndef NO_SSL_GLOBAL_LOC
1044+
#ifndef NO_SSL_GLOBAL_LOCK
10451045
lock_release(tls_global_lock);
10461046
#endif
10471047

10481048
LM_DBG("%d bytes read\n", ret);
10491049
return ret;
10501050
} else if (ret == 0) {
1051-
#ifndef NO_SSL_GLOBAL_LOC
1051+
#ifndef NO_SSL_GLOBAL_LOCK
10521052
lock_release(tls_global_lock);
10531053
#endif
10541054

0 commit comments

Comments
 (0)