Mercurial > pidgin
comparison src/proxy.c @ 6320:ef9065e52582
[gaim-migrate @ 6819]
Hiptop is a funny word.
Also, this should fix some crashination when using an http proxy with a
username but no password on Solaris. Needless to say, it's a bit rare.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 28 Jul 2003 22:53:14 +0000 |
parents | 80e3641ee9eb |
children | 42fdf16f1dad |
comparison
equal
deleted
inserted
replaced
6319:2c9b9d51bec2 | 6320:ef9065e52582 |
---|---|
935 | 935 |
936 if (gaim_proxy_info_get_username(phb->gpi) != NULL) { | 936 if (gaim_proxy_info_get_username(phb->gpi) != NULL) { |
937 char *t1, *t2; | 937 char *t1, *t2; |
938 t1 = g_strdup_printf("%s:%s", | 938 t1 = g_strdup_printf("%s:%s", |
939 gaim_proxy_info_get_username(phb->gpi), | 939 gaim_proxy_info_get_username(phb->gpi), |
940 gaim_proxy_info_get_password(phb->gpi)); | 940 gaim_proxy_info_get_password(phb->gpi) ? |
941 | 941 gaim_proxy_info_get_password(phb->gpi) : ""); |
942 t2 = tobase64(t1, strlen(t1)); | 942 t2 = tobase64(t1, strlen(t1)); |
943 g_free(t1); | 943 g_free(t1); |
944 g_return_if_fail(request_len < sizeof(request)); | 944 g_return_if_fail(request_len < sizeof(request)); |
945 request_len += g_snprintf(request + request_len, | 945 request_len += g_snprintf(request + request_len, |
946 sizeof(request) - request_len, | 946 sizeof(request) - request_len, |