Skip to content
Snippets Groups Projects
Commit 02ae3c28 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

read from the open2 filehandle with sysread, not <handle>

parent 669ebb5f
No related branches found
No related tags found
No related merge requests found
......@@ -541,7 +541,9 @@ sub PASV_command {
"./server/sockfilt --port 0 --logfile log/sockdata$ftpdnum$ext.log --pidfile .sockdata$ftpdnum$ext.pid $ipv6");
print DWRITE "PING\n";
my $pong = <DREAD>;
my $pong;
sysread(DREAD, $pong, 5) || die;
if($pong !~ /^PONG/) {
kill(9, $slavepid);
......@@ -668,7 +670,8 @@ sub PORT_command {
"./server/sockfilt --connect $port --logfile log/sockdata$ftpdnum$ext.log --pidfile .sockdata$ftpdnum$ext.pid $ipv6");
print DWRITE "PING\n";
my $pong = <DREAD>;
my $pong;
sysread DREAD, $pong, 5;
if($pong !~ /^PONG/) {
logmsg "Failed sockfilt for data connection\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment