diff options
Diffstat (limited to 'src/plugins/irc/irc-sasl.c')
-rw-r--r-- | src/plugins/irc/irc-sasl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-sasl.c b/src/plugins/irc/irc-sasl.c index 623d12a27..57f4050fc 100644 --- a/src/plugins/irc/irc-sasl.c +++ b/src/plugins/irc/irc-sasl.c @@ -1,7 +1,7 @@ /* * irc-sasl.c - SASL authentication with IRC server * - * Copyright (C) 2003-2015 Sébastien Helleu <flashcode@flashtux.org> + * Copyright (C) 2003-2016 Sébastien Helleu <flashcode@flashtux.org> * * This file is part of WeeChat, the extensible chat client. * @@ -343,6 +343,8 @@ irc_sasl_dh (const char *data_base64, /* decode data */ data = malloc (strlen (data_base64) + 1); + if (!data) + goto dhend; length_data = weechat_string_decode_base64 (data_base64, data); ptr_data = (unsigned char *)data; |