diff options
author | Michael Catanzaro <mcatanzaro@redhat.com> | 2021-07-12 08:38:02 -0500 |
---|---|---|
committer | Patrick <tingping@tingping.se> | 2021-07-12 11:29:15 -0500 |
commit | 25440a07c3b421134b4376d7db3ee4b7ed57ad98 (patch) | |
tree | 73f110696622d7246bf3d64c4ab82f8f67bffe26 /src/common/chanopt.c | |
parent | 869a8d7ab335cf785e06450e4ab1ca02a9f5005f (diff) |
Avoid direct use of libproxy
Since hexchat already depends on GLib, it's better to use GProxyResolver instead. This might use libproxy, or not, as appropriate. P.S. This removes a memory safety issue because proxy_list is allocated using malloc(), not g_malloc(), and therefore using g_strfreev() is incorrect. The proper way to free the proxy list returned by libproxy is to use px_proxy_factory_free_proxies() (but nobody does that because it was added in libproxy 0.4.16, which is somewhat recent).
Diffstat (limited to 'src/common/chanopt.c')
0 files changed, 0 insertions, 0 deletions