summaryrefslogtreecommitdiffstats
path: root/plugin/feedback/url_http.cc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:15:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:15:00 +0000
commita2a2e32c02643a0cec111511220227703fda1cd5 (patch)
tree69cc2b631234c2a8e026b9cd4d72676c61c594df /plugin/feedback/url_http.cc
parentReleasing progress-linux version 1:10.11.8-1~progress7.99u1. (diff)
downloadmariadb-a2a2e32c02643a0cec111511220227703fda1cd5.tar.xz
mariadb-a2a2e32c02643a0cec111511220227703fda1cd5.zip
Merging upstream version 1:11.4.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plugin/feedback/url_http.cc')
-rw-r--r--plugin/feedback/url_http.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin/feedback/url_http.cc b/plugin/feedback/url_http.cc
index 590bb06c..aa1706bb 100644
--- a/plugin/feedback/url_http.cc
+++ b/plugin/feedback/url_http.cc
@@ -176,7 +176,12 @@ int Url_http::send(const char* data, size_t data_length)
char buf[1024];
size_t len= 0;
- addrinfo *addrs, *addr, filter= {0, AF_UNSPEC, SOCK_STREAM, 6, 0, 0, 0, 0};
+ addrinfo *addrs, *addr, filter;
+ bzero((void*) &filter, sizeof(filter));
+ filter.ai_family= AF_UNSPEC;
+ filter.ai_socktype= SOCK_STREAM;
+ filter.ai_protocol=6;
+
int res= use_proxy() ?
getaddrinfo(proxy_host.str, proxy_port.str, &filter, &addrs) :
getaddrinfo(host.str, port.str, &filter, &addrs);