1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

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

This commit is contained in:
Daniel Stenberg 2005-05-02 11:31:15 +00:00
parent 669ebb5f71
commit 02ae3c2810

View File

@ -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";