summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-08-23 12:08:59 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-08-23 12:08:59 +0200
commit03927a3283d0f4d3c432d0a6c21f0f5261015b3c (patch)
treeba33456ce679a9fd2eec68b64845052de73fa33c /src/plugins
parent7afc43901d6af27cb421cc878e9bd38a35f3b97f (diff)
downloadweechat-03927a3283d0f4d3c432d0a6c21f0f5261015b3c.zip
irc: check that server is not NULL in function irc_server_eval_fingerprint
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index 1d0c50e90..10f14c981 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -441,6 +441,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);