mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 22:36:38 +02:00
irc: fix NULL pointer derefence in case of memory error in irc_sasl_dh()
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user