]> granicus.if.org Git - curl/commitdiff
smb: don't mark it done in smb_do
authorDaniel Stenberg <daniel@haxx.se>
Wed, 1 Aug 2018 11:06:21 +0000 (13:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 1 Aug 2018 13:52:52 +0000 (15:52 +0200)
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

lib/smb.c

index 77eee35a13baca6ad953ce953e2ecfabdf3a1954..09aa8efc788fe46273342fa6c3d0200a73a64eda 100644 (file)
--- 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;
     }
   }