From: Egor Date: Thu, 12 May 2022 18:13:34 +0000 (+0300) Subject: fix WHOIS crash X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=af12d91e9aafb36089cf69576446a2d6dffeab80;p=patchyircd.git fix WHOIS crash --- 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))