mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:23:36 +03:00
read from the open2 filehandle with sysread, not <handle>
This commit is contained in:
parent
669ebb5f71
commit
02ae3c2810
1 changed files with 5 additions and 2 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue