mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-19 01:54:37 +00:00
db1cd8f881
In http_7239_extract_{ipv4,ipv6}, we declare a local buffer in order to
use inet_pton() since it requires a valid destination argument (cannot be
NULL). Then, if the caller provided <ip> argument, we copy inet_pton()
result (from local buffer to <ip>).
In fact when the caller provides <ip>, we may directly use <ip> as
inet_pton() dst argument to avoid an useless copy. Thus the local buffer
is only relevant when the user doesn't provide <ip>.
While at it, let's add a missing testcase for the rfc7239_n2nn converter
(to check that http_7239_extract_ipv4() with <ip> provided works properly)
This could be backported in 2.8 with
|
||
---|---|---|
.. | ||
1k.txt | ||
acl_cli_spaces.vtc | ||
agents.acl | ||
converters_ipmask_concat_strcmp_field_word.map | ||
converters_ipmask_concat_strcmp_field_word.vtc | ||
default_rules.vtc | ||
del_header.vtc | ||
except-forwardfor-originalto.vtc | ||
forwarded-header-7239.vtc | ||
h1or2_to_h1c.vtc | ||
http_after_response.vtc | ||
http_return.vtc | ||
http-err-fail.vtc | ||
ifnone-forwardfor.vtc | ||
lf-file.txt | ||
map_ordering.map | ||
map_ordering.vtc | ||
map_redirect-be.map | ||
map_redirect.map | ||
map_redirect.vtc | ||
map_regm_with_backref.map | ||
map_regm_with_backref.vtc | ||
normalize_uri.vtc | ||
path_and_pathq.vtc | ||
restrict_req_hdr_names.vtc | ||
strict_rw_mode.vtc |