This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2b6a4d
)
[perl #41521] Fix for IO::Socket send method
author
Todd C. Miller
<Todd.Miller@courtesan.com>
Fri, 16 Feb 2007 11:26:45 +0000
(
03:26
-0800)
committer
Steve Peters
<steve@fisharerojo.org>
Fri, 16 Feb 2007 20:19:16 +0000
(20:19 +0000)
From: "Todd C. Miller" (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.6.HEAD-24617-
1171654005
-819.41521-75-0@perl.org>
p4raw-id: //depot/perl@30332
ext/IO/lib/IO/Socket.pm
patch
|
blob
|
blame
|
history
diff --git
a/ext/IO/lib/IO/Socket.pm
b/ext/IO/lib/IO/Socket.pm
index
5d78322
..
9095093
100644
(file)
--- a/
ext/IO/lib/IO/Socket.pm
+++ b/
ext/IO/lib/IO/Socket.pm
@@
-250,7
+250,7
@@
sub send {
my $peer = $_[3] || $sock->peername;
croak 'send: Cannot determine peer address'
- unless($peer);
+ unless(
defined
$peer);
my $r = defined(getpeername($sock))
? send($sock, $_[1], $flags)