]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap-urlauth: Fixed handling of URLAUTH service connection resume after pending...
authorStephan Bosch <stephan@rename-it.nl>
Thu, 30 May 2013 15:04:17 +0000 (18:04 +0300)
committerStephan Bosch <stephan@rename-it.nl>
Thu, 30 May 2013 15:04:17 +0000 (18:04 +0300)
This was erroneously removed in an earlier commit.

src/lib-imap-urlauth/imap-urlauth-fetch.c

index 674447af69efdc4dcef29ac1de33eb63e65e870c..2393811aa835250e0717bd96be79e5ecfb357856 100644 (file)
@@ -311,6 +311,7 @@ imap_urlauth_fetch_request_callback(struct imap_urlauth_fetch_reply *reply,
                ufetch->pending_reply.size = reply->size;
                ufetch->pending_reply.succeeded = reply->succeeded;
                ufetch->pending_reply.binary_has_nuls = reply->binary_has_nuls;
+               ufetch->waiting_service = TRUE;
                return 0;
        }
 
@@ -479,6 +480,9 @@ static bool imap_urlauth_fetch_do_continue(struct imap_urlauth_fetch *ufetch)
                        ufetch->pending_requests++;
                        return TRUE;
                }
+
+               ufetch->waiting_service = FALSE;
+               imap_urlauth_connection_continue(ufetch->uctx->conn);
        }
 
        /* handle pending local urls */