Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
c34d7d7
)
THRIFT-1082: Thrift::FramedTransport sometimes calls close() on an undefined value
author
Jake Farrell
<jfarrell@apache.org>
Fri, 28 Sep 2012 12:08:01 +0000
(12:08 +0000)
committer
Jake Farrell
<jfarrell@apache.org>
Fri, 28 Sep 2012 12:08:01 +0000
(12:08 +0000)
Client: perl
Patch: John Siracusa
Fixes Thrift::FramedTransport module sometimes ends up calling the close() method on an undefined value inside its own close()
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1391418
13f79535
-47bb-0310-9956-
ffa450edef68
lib/perl/lib/Thrift/FramedTransport.pm
patch
|
blob
|
history
diff --git
a/lib/perl/lib/Thrift/FramedTransport.pm
b/lib/perl/lib/Thrift/FramedTransport.pm
index
b78b198
..
e8e85dc
100644
(file)
--- a/
lib/perl/lib/Thrift/FramedTransport.pm
+++ b/
lib/perl/lib/Thrift/FramedTransport.pm
@@
-68,7
+68,9
@@
sub close
{
my $self = shift;
- $self->{transport}->close();
+ if (defined $self->{transport}) {
+ $self->{transport}->close();
+ }
}
#