]> code.citadel.org Git - citadel.git/blobdiff - webcit/webserver.c
Call endtls() when an HTTP session ends normally -- not
[citadel.git] / webcit / webserver.c
index 7a43269e2a0966437065635c6571feec37ef2977..8e86431dda7cba746eb190a872e63ce6cac08201 100644 (file)
@@ -751,8 +751,15 @@ void worker_entry(void)
 #endif
 
                        if (fail_this_transaction == 0) {
+
                                /** Perform an HTTP transaction... */
                                context_loop(ssock);
+
+                               /** Shut down SSL/TLS if required... */
+                               if (is_https) {
+                                       endtls();
+                               }
+
                                /** ...and close the socket. */
                                lingering_close(ssock);
                        }