mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 22:36:38 +02:00
Fix crash in Perl plugin when callbacks are called during script initialization (bug #29018)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
WeeChat ChangeLog
|
||||
=================
|
||||
FlashCode <flashcode@flashtux.org>
|
||||
v0.3.2-dev, 2010-02-26
|
||||
v0.3.2-dev, 2010-02-27
|
||||
|
||||
|
||||
Version 0.3.2 (under dev!)
|
||||
@@ -33,6 +33,8 @@ Version 0.3.2 (under dev!)
|
||||
* api: fix "inactivity" value when no key has been pressed since WeeChat started
|
||||
(bug #28930)
|
||||
* scripts: allow script commands to reload only one script
|
||||
* perl: fix crash when callbacks are called during script initialization
|
||||
(bug #29018)
|
||||
* irc: add SASL authentication, with PLAIN and DH-BLOWFISH mechanisms
|
||||
(task #8829)
|
||||
* irc: fix crash with SSL connection if option ssl_cert is set (bug #28752)
|
||||
|
||||
@@ -148,7 +148,8 @@ weechat_perl_exec (struct t_plugin_script *script,
|
||||
(void) length;
|
||||
func = (char *) function;
|
||||
old_context = PERL_GET_CONTEXT;
|
||||
PERL_SET_CONTEXT (script->interpreter);
|
||||
if (script->interpreter)
|
||||
PERL_SET_CONTEXT (script->interpreter);
|
||||
#else
|
||||
length = strlen (script->interpreter) + strlen (function) + 3;
|
||||
func = (char *) malloc (length);
|
||||
|
||||
Reference in New Issue
Block a user