Include the FPGetSrvrInfo AFP-level request in DSIGetInfo packets.

The macOS AFP server gives a response even without this, but the protocol spec says it should be there.
This commit is contained in:
Stephen Heumann 2017-03-20 00:58:17 -05:00
parent 0b0a422c33
commit 83c702fcbb
1 changed files with 3 additions and 2 deletions

View File

@ -101,15 +101,16 @@ void DispatchASPCommand(SPCommandRec *commandRec) {
}
void DoSPGetStatus(Session *sess, ASPGetStatusRec *commandRec) {
static const Word kFPGetSrvrInfo = 15;
sess->request.flags = DSI_REQUEST;
sess->request.command = DSIGetStatus;
sess->request.requestID = htons(sess->nextRequestID++);
sess->request.writeOffset = 0;
sess->request.totalDataLength = 0;
sess->request.totalDataLength = htonl(2);
sess->replyBuf = (void*)commandRec->bufferAddr;
sess->replyBufLen = commandRec->bufferLength;
SendDSIMessage(sess, &sess->request, NULL);
SendDSIMessage(sess, &sess->request, &kFPGetSrvrInfo);
}
void DoSPOpenSession(Session *sess, ASPOpenSessionRec *commandRec) {