mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
BUG/MINOR: ssl-sock: do not return an uninitialized pointer in ckch_inst_sni_ctx_to_sni_filters
There's a build error reported here:
c9c6cdbf9c/checks
It's just caused by an inconditional assignment of tmp_filter to
*sni_filter without having been initialized, though it's harmless because
this return pointer is not used when fcount is NULL, which is the only
case where this happens.
No backport is needed as this was brought today by commit 38df1c8006
("MINOR: ssl/cli: support crt-list filters").
This commit is contained in:
parent
c9c6cdbf9c
commit
d04a2a6654
@ -3960,8 +3960,8 @@ static int ckch_inst_sni_ctx_to_sni_filters(const struct ckch_inst *ckchi, char
|
|||||||
memcpy(tmp_filter[i] + sc0->neg + sc0->wild, (char *)sc0->name.key, len + 1);
|
memcpy(tmp_filter[i] + sc0->neg + sc0->wild, (char *)sc0->name.key, len + 1);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
end:
|
|
||||||
*sni_filter = tmp_filter;
|
*sni_filter = tmp_filter;
|
||||||
|
end:
|
||||||
*fcount = tmp_fcount;
|
*fcount = tmp_fcount;
|
||||||
|
|
||||||
return errcode;
|
return errcode;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user