1 |
From e8cb1c3e94c9effc596aafb0442434d07098fc5d Mon Sep 17 00:00:00 2001 |
2 |
From: Matt Simerson <matt@tnpi.net> |
3 |
Date: Tue, 4 May 2010 01:04:38 -0400 |
4 |
Subject: added definedness test to $local_port as it was emitting errors to to not being defined. My previous commit to TcpServer.pm fixed that problem. |
5 |
|
6 |
Signed-off-by: Robert <rspier@pobox.com> |
7 |
--- |
8 |
plugins/tls | 2 +- |
9 |
1 files changed, 1 insertions(+), 1 deletions(-) |
10 |
|
11 |
diff --git a/plugins/tls b/plugins/tls |
12 |
index b690eb6..37fbc9a 100644 |
13 |
--- a/plugins/tls |
14 |
+++ b/plugins/tls |
15 |
@@ -143,7 +143,7 @@ sub hook_connect { |
16 |
my ($self, $transaction) = @_; |
17 |
|
18 |
my $local_port = $self->qp->connection->local_port; |
19 |
- return DECLINED unless $local_port == 465; # SMTPS |
20 |
+ return DECLINED unless defined $local_port && $local_port == 465; # SMTPS |
21 |
|
22 |
unless ( _convert_to_ssl($self) ) { |
23 |
return (DENY_DISCONNECT, "Cannot establish SSL session"); |
24 |
-- |
25 |
1.7.2.2 |
26 |
|