From af12d91e9aafb36089cf69576446a2d6dffeab80 Mon Sep 17 00:00:00 2001 From: Egor Date: Thu, 12 May 2022 21:13:34 +0300 Subject: [PATCH] fix WHOIS crash --- irc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc.c b/irc.c index b86e7a9..24abcc0 100644 --- a/irc.c +++ b/irc.c @@ -895,7 +895,7 @@ int processPacket(struct client_data *client, char *source, char *command, int a if (cl) { #ifdef HAS_TLS if (client == cl || client->umode & UMODE_OPER) - if (client->cctx && tls_peer_cert_provided(client->cctx)) + if (client->cctx && tls_peer_cert_provided(cl->cctx)) rpl_whoiscertfp(client, cl, tls_peer_cert_hash(cl->cctx)), sendbuf(client); #endif if (cl->umode & UMODE_REGISTERED && !strcmp(cl->key, cl->username)) -- 2.56.0