mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-03 20:39:41 -05:00
BUG/MINOR: sample: Fix output type of c_ipv62ip
c_ipv62ip failed to set the output type of the cast to SMP_T_IPV4
even for a successful conversion.
This bug exists as of commit cc4d1716a2
which is the first commit adding this function.
v1.6-dev4 is the first tag containing this commit, the fix should
be backported to haproxy 1.6 and newer.
This commit is contained in:
parent
ec6b0a2d18
commit
bf5ce02eff
1 changed files with 1 additions and 1 deletions
|
|
@ -531,7 +531,7 @@ static int c_ipv62ip(struct sample *smp)
|
|||
{
|
||||
if (!v6tov4(&smp->data.u.ipv4, &smp->data.u.ipv6))
|
||||
return 0;
|
||||
smp->data.type = SMP_T_IPV6;
|
||||
smp->data.type = SMP_T_IPV4;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue