Skip to content

Commit

Permalink
Bug: Crash by assigning to uninitialized value as hashref.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedas committed Jan 24, 2020
1 parent a8016d9 commit a43c262
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/cgi/wwsympa.fcgi.in
Original file line number Diff line number Diff line change
Expand Up @@ -2108,12 +2108,11 @@ sub get_parameters {
unless defined $plugin->{$plugin_name};
$plugin->{$plugin_name}{$param_name} = $in{$p};
undef $in{$p};
} elsif ($pname =~ /^custom_input(.*)$/) {
} elsif ($pname eq 'custom_input') {
my $key = $tokens[1];
$regexp = $in_regexp{'custom_input'};
$log->syslog('debug2',
"get_parameters (custom_input) : ($p)($key) $pname $in{$p} $Conf::Conf{$key}{type}"
);
$log->syslog('debug2', '(%s) %s', $p, $in{$p});
$custom_input ||= {};
$custom_input->{$key} = $in{$p};
undef $in{$p};
} elsif ($in_regexp{$pname}) {
Expand Down Expand Up @@ -2180,7 +2179,7 @@ sub get_parameters {
}

$in{custom_attribute} = $custom_attribute;
$in{custom_input} = $custom_input;
$in{custom_input} = $custom_input if $custom_input;
$in{plugin} = $plugin;

return 1;
Expand Down

0 comments on commit a43c262

Please sign in to comment.