MINOR: sink: Add a ref to sink in the sink_forward_target structure

This change is required to be able to refactor the init stage of appctx. It
is now possible to directly get the sink from a forward target.
diff --git a/include/haproxy/sink-t.h b/include/haproxy/sink-t.h
index 399d87a..a0de3d1 100644
--- a/include/haproxy/sink-t.h
+++ b/include/haproxy/sink-t.h
@@ -40,6 +40,7 @@
 	struct server *srv;    // used server
 	struct appctx *appctx; // appctx of current session
 	size_t ofs;            // ring buffer reader offset
+	struct sink *sink;     // the associated sink
 	struct sink_forward_target *next;
 	__decl_thread(HA_SPINLOCK_T lock); // lock to protect current struct
 };
diff --git a/src/sink.c b/src/sink.c
index 5939185..681f363 100644
--- a/src/sink.c
+++ b/src/sink.c
@@ -1005,6 +1005,7 @@
 	/* insert into sink_forward_targets
 	 * list into sink
 	 */
+	sft->sink = sink;
 	sft->next = sink->sft;
 	sink->sft = sft;