summaryrefslogtreecommitdiffstats
path: root/include/haproxy/session.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/haproxy/session.h')
-rw-r--r--include/haproxy/session.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/haproxy/session.h b/include/haproxy/session.h
index 38335e4..8a62805 100644
--- a/include/haproxy/session.h
+++ b/include/haproxy/session.h
@@ -188,6 +188,12 @@ static inline int session_add_conn(struct session *sess, struct connection *conn
LIST_APPEND(&sess->srv_list, &srv_list->srv_list);
}
LIST_APPEND(&srv_list->conn_list, &conn->session_list);
+
+ /* Ensure owner is set for connection. It could have been resetted
+ * prior on after a session_add_conn() failure.
+ */
+ conn->owner = sess;
+
return 1;
}