]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: dns: Always access the stream-int via the conn-stream
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Dec 2021 12:40:42 +0000 (13:40 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Feb 2022 10:00:02 +0000 (11:00 +0100)
To be able to move the stream-interface from the stream to the conn-stream,
all access to the SI is done via the conn-stream. This patch is limited to
the dns part.

src/dns.c

index ed2f875c41705c976c6e42cf0740622b368cbbc6..0bcecec2d3662d2637abc2af4d3c164a29ad3a4d 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
@@ -916,10 +916,10 @@ static struct appctx *dns_session_create(struct dns_session *ds)
 
 
        s->target = &ds->dss->srv->obj_type;
-       if (!sockaddr_alloc(&s->si[1].dst, &ds->dss->srv->addr, sizeof(ds->dss->srv->addr)))
+       if (!sockaddr_alloc(&cs_si(s->csb)->dst, &ds->dss->srv->addr, sizeof(ds->dss->srv->addr)))
                goto out_free_strm;
        s->flags = SF_ASSIGNED|SF_ADDR_SET;
-       s->si[1].flags |= SI_FL_NOLINGER;
+       cs_si(s->csb)->flags |= SI_FL_NOLINGER;
 
        s->do_log = NULL;
        s->uniq_id = 0;