Unverified Commit 45d45275 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

smb: don't mark it done in smb_do

Follow-up to 09e401e0. The SMB protocol handler needs to use its
doing function too, which requires smb_do() to not mark itself as
done...

Closes #2822
parent 276644ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -941,11 +941,11 @@ static CURLcode smb_do(struct connectdata *conn, bool *done)
  struct smb_conn *smbc = &conn->proto.smbc;
  struct smb_request *req = conn->data->req.protop;

  *done = FALSE;
  if(smbc->share) {
    req->path = strchr(smbc->share, '\0');
    if(req->path) {
      req->path++;
      *done = TRUE;
      return CURLE_OK;
    }
  }