Handle some PRELIM replies. RFC959 states only 1 PRELIM (1yz) is allowed
but we are liberaly in what we accept.
* Transport code is expected to call back through
* setCtrlFds so fdIn should be properly setup...
*/
- return (fdIn != NULL && getReply(false) == COMPLETE);
+ if (fdIn == NULL)
+ return (false);
+ int rep = PRELIM;
+ for (int i = 0; rep == PRELIM && i < 100; i++)
+ rep = getReply(false);
+ return (rep == COMPLETE);
} else
return (false);
}