]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] used http_flush_cookie_flags() instead of a dirty code block
authorWilly Tarreau <w@1wt.eu>
Sun, 18 Mar 2007 19:53:22 +0000 (20:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Mar 2007 19:53:22 +0000 (20:53 +0100)
src/proto_http.c

index eb2c0d564608c290f3b232f911d2f72d0acb7a8a..ad5188aea1cbba519b2d3c2b00a598bb3e814a6e 100644 (file)
@@ -2125,10 +2125,7 @@ int process_srv(struct session *t)
 
                                t->flags &= ~(SN_DIRECT | SN_ASSIGNED | SN_ADDR_SET);
                                t->srv = NULL; /* it's left to the dispatcher to choose a server */
-                               if ((txn->flags & TX_CK_MASK) == TX_CK_VALID) {
-                                       txn->flags &= ~TX_CK_MASK;
-                                       txn->flags |= TX_CK_DOWN;
-                               }
+                               http_flush_cookie_flags(txn);
 
                                /* first, get a connection */
                                if (srv_redispatch_connect(t))