rhsbl: make sure $transaction->sender defined before accessing it
This commit is contained in:
parent
bc793a87c7
commit
6988fa5377
@ -103,9 +103,11 @@ sub hook_mail {
|
|||||||
|
|
||||||
$self->log(LOGINFO, "fail, $result");
|
$self->log(LOGINFO, "fail, $result");
|
||||||
|
|
||||||
my $host = $transaction->sender->host;
|
if ( $transaction->sender ) {
|
||||||
if ($result =~ /^$host\./ ) {
|
my $host = $transaction->sender->host;
|
||||||
return $self->get_reject( "Mail from $host rejected because it $result" );
|
if ($result =~ /^$host\./ ) {
|
||||||
|
return $self->get_reject( "Mail from $host rejected because it $result" );
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
my $hello = $self->qp->connection->hello_host;
|
my $hello = $self->qp->connection->hello_host;
|
||||||
|
Loading…
Reference in New Issue
Block a user