File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -534,8 +534,11 @@ int SFTP::continueSpawn(eio_req *req)
534
534
// fprintf(stderr, "2\n");
535
535
pthis->m_size = ssh_channel_read (pthis->m_ssh_channel ,
536
536
pthis->m_path ,SSH_MIN (available, 1024 ),0 );
537
- if (pthis->m_size = =0 )
537
+ if (pthis->m_size < =0 )
538
538
pthis->m_done = 1 ;
539
+ if (pthis->m_size < 0 ) {
540
+ pthis->m_size = 0 ;
541
+ }
539
542
}
540
543
else if (available < 0 ) {
541
544
// fprintf(stderr, "3\n");
@@ -549,8 +552,11 @@ int SFTP::continueSpawn(eio_req *req)
549
552
// fprintf(stderr, "4\n");
550
553
pthis->m_size2 = ssh_channel_read (pthis->m_ssh_channel ,
551
554
pthis->m_path2 ,SSH_MIN (available2, 1024 ),1 );
552
- if (pthis->m_size2 ==0 )
553
- pthis->m_done = 1 ;
555
+ if (pthis->m_size2 <=0 )
556
+ pthis->m_done = 1 ;
557
+ if (pthis->m_size2 < 0 ) {
558
+ pthis->m_size2 = 0 ;
559
+ }
554
560
}
555
561
else if (available2 < 0 ) {
556
562
// fprintf(stderr, "5\n");
Original file line number Diff line number Diff line change @@ -25,4 +25,4 @@ def build(bld):
25
25
]
26
26
ssh .cxxflags = [ '-D_FILE_OFFSET_BITS=64' , '-D_LARGEFILE_SOURCE' ]
27
27
28
- ssh .staticlib = 'SSH '
28
+ ssh .staticlib = 'ssh '
You can’t perform that action at this time.
0 commit comments