1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

irc: check that server is not NULL in function irc_server_eval_fingerprint

This commit is contained in:
Sébastien Helleu
2023-08-23 12:08:59 +02:00
parent c811072bdf
commit 1a05f89586
+3
View File
@@ -418,6 +418,9 @@ irc_server_eval_fingerprint (struct t_irc_server *server)
char *fingerprint_eval, **fingerprints, *str_sizes;
int i, j, rc, algo, length;
if (!server)
return NULL;
ptr_fingerprint = IRC_SERVER_OPTION_STRING(server,
IRC_SERVER_OPTION_TLS_FINGERPRINT);