diff options
Diffstat (limited to 'community/supertuxkart/0001-network_config-use-ns_name_uncompress.patch')
-rw-r--r-- | community/supertuxkart/0001-network_config-use-ns_name_uncompress.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/community/supertuxkart/0001-network_config-use-ns_name_uncompress.patch b/community/supertuxkart/0001-network_config-use-ns_name_uncompress.patch new file mode 100644 index 0000000000..dc11b31f98 --- /dev/null +++ b/community/supertuxkart/0001-network_config-use-ns_name_uncompress.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From fe82f77786d24b812b8d226195fdb196d8ecb35f Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com> | ||
3 | Date: Fri, 28 Aug 2020 19:30:38 -0300 | ||
4 | Subject: [PATCH] network_config: use ns_name_uncompress | ||
5 | |||
6 | --- | ||
7 | src/network/network_config.cpp | 2 +- | ||
8 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
9 | |||
10 | diff --git a/src/network/network_config.cpp b/src/network/network_config.cpp | ||
11 | index 605254808..d4e08cc5e 100644 | ||
12 | --- a/src/network/network_config.cpp | ||
13 | +++ b/src/network/network_config.cpp | ||
14 | @@ -587,7 +587,7 @@ void NetworkConfig::fillStunList(std::vector<std::pair<std::string, int> >* l, | ||
15 | for (unsigned i = 0; i < srv.size(); i++) | ||
16 | { | ||
17 | char server_name[512] = {}; | ||
18 | - if (ns_name_ntop(srv[i] + SRV_SERVER, server_name, 512) < 0) | ||
19 | + if (ns_name_uncompress(response, response + response_len, srv[i] + SRV_SERVER, server_name, 512) < 0) | ||
20 | continue; | ||
21 | uint16_t port = ns_get16(srv[i] + SRV_PORT); | ||
22 | uint16_t weight = ns_get16(srv[i] + SRV_WEIGHT); | ||
23 | -- | ||
24 | 2.28.0 | ||
25 | |||