summaryrefslogtreecommitdiff
path: root/Ivy.pm
diff options
context:
space:
mode:
authorbustico2007-12-21 09:19:34 +0000
committerbustico2007-12-21 09:19:34 +0000
commit1f26ff323a31d69448a82b4fdfc0512231567ae2 (patch)
tree6feed5f307e94eac17e2178c1ab0fde789b772a1 /Ivy.pm
parentfd2fb7356ddb6b002498b0ad05f5cae3b82e1587 (diff)
downloadivy-perl-1f26ff323a31d69448a82b4fdfc0512231567ae2.zip
ivy-perl-1f26ff323a31d69448a82b4fdfc0512231567ae2.tar.gz
ivy-perl-1f26ff323a31d69448a82b4fdfc0512231567ae2.tar.bz2
ivy-perl-1f26ff323a31d69448a82b4fdfc0512231567ae2.tar.xz
verify validity of socket arg in low levelcallback _getMessage
Diffstat (limited to 'Ivy.pm')
-rw-r--r--Ivy.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Ivy.pm b/Ivy.pm
index 6607d68..bd979ca 100644
--- a/Ivy.pm
+++ b/Ivy.pm
@@ -1461,6 +1461,12 @@ sub _getConnections ($)
sub _getMessages ($$)
{
my ($self, $appSock) = @_;
+
+ unless (defined $appSock) {
+ carp "Warning in Ivy::_getMessages : *UN*inititialized appSock, don't do anything\n" if $^W;
+ return;
+ }
+
my $bufferRef = \$self->[bufRecByCnnx]{$appSock};
my ($addr, $peerPort, $senderName);
my $nlIndex;