From: Daniel Stenberg Date: Wed, 1 Aug 2018 11:06:21 +0000 (+0200) Subject: smb: don't mark it done in smb_do X-Git-Tag: curl-7_61_1~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45d45275e1f7b764839333ba374bd695d258f43b;p=thirdparty%2Fcurl.git smb: don't mark it done in smb_do Follow-up to 09e401e01bf9. The SMB protocol handler needs to use its doing function too, which requires smb_do() to not mark itself as done... Closes #2822 --- diff --git a/lib/smb.c b/lib/smb.c index 77eee35a13..09aa8efc78 100644 --- a/lib/smb.c +++ b/lib/smb.c @@ -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; } }