From: Egor Date: Fri, 27 May 2022 17:46:09 +0000 (+0300) Subject: fix whois crash on non-tls users X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=7dc0c238f9134df81ed03dabca9d6cc66811c634;p=patchyircd.git fix whois crash on non-tls users --- diff --git a/irc.c b/irc.c index 8553465..a5e86ff 100644 --- a/irc.c +++ b/irc.c @@ -889,7 +889,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(cl->cctx)) + if (cl->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))