summaryrefslogtreecommitdiff
path: root/tls.c
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2019-11-18 11:04:23 +0000
committerdormando <dormando@rydia.net>2020-01-13 17:22:25 -0800
commit8dd9b3b044bbe4dac5b611bcc1ff419c6ff9c766 (patch)
tree8fe2461461c66cdd61bd14b8c42f0c5b251db0a7 /tls.c
parent096127cbe42502fe4d6d117cd4f95381d7d7a291 (diff)
downloadmemcached-8dd9b3b044bbe4dac5b611bcc1ff419c6ff9c766.tar.gz
Note that the help string is too long and triggers
compilation warning when enabling TLS (at least) but https://github.com/memcached/memcached/pull/496 seemingly will fix it. TLS feature using native API for comparison instead as on some platforms pthread_t is an opaque type.
Diffstat (limited to 'tls.c')
-rw-r--r--tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tls.c b/tls.c
index 8e66a89..c440a7e 100644
--- a/tls.c
+++ b/tls.c
@@ -53,7 +53,7 @@ ssize_t ssl_sendmsg(conn *c, struct msghdr *msg, int flags) {
// conn_worker_readd.
// Currntly this connection would not be served by a different thread
// than the one it's assigned.
- assert(c->thread->thread_id == (unsigned long)pthread_self());
+ assert(pthread_equal(c->thread->thread_id, pthread_self()) != 0);
char *bp = c->ssl_wbuf;
for (i = 0; i < msg->msg_iovlen; i++) {