diff options
author | David Carlier <devnexen@gmail.com> | 2019-11-18 11:04:23 +0000 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2020-01-13 17:22:25 -0800 |
commit | 8dd9b3b044bbe4dac5b611bcc1ff419c6ff9c766 (patch) | |
tree | 8fe2461461c66cdd61bd14b8c42f0c5b251db0a7 /tls.c | |
parent | 096127cbe42502fe4d6d117cd4f95381d7d7a291 (diff) | |
download | memcached-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++) { |