libpurple/proxy.c

changeset 32763
fecea45a546b
parent 32337
30bb3ebd0ed9
child 32859
4709ac992354
equal deleted inserted replaced
32762:19da30ca0ffb 32763:fecea45a546b
2022 error = errno; 2022 error = errno;
2023 purple_proxy_connect_data_disconnect(connect_data, g_strerror(error)); 2023 purple_proxy_connect_data_disconnect(connect_data, g_strerror(error));
2024 return; 2024 return;
2025 } 2025 }
2026 2026
2027 i = 0;
2028 buf[0] = 0x05; /* SOCKS version 5 */ 2027 buf[0] = 0x05; /* SOCKS version 5 */
2029 2028
2030 if (purple_proxy_info_get_username(connect_data->gpi) != NULL) { 2029 if (purple_proxy_info_get_username(connect_data->gpi) != NULL) {
2031 buf[1] = 0x03; /* three methods */ 2030 buf[1] = 0x03; /* three methods */
2032 buf[2] = 0x00; /* no authentication */ 2031 buf[2] = 0x00; /* no authentication */

mercurial