Mercurial > pidgin
comparison src/protocols/gg/gg.c @ 4511:238e1dd2f1a7
[gaim-migrate @ 4787]
Carl-Daniel Hailfinger (c-d_hailfinger) found that:
"Current CVS with debug is unable to login to Gadu-Gadu.
It establishes a TCP connection (which stays up until I
quit Gaim), but throws following error:
'Could not log in. Connection impossible'
(rough translation of german)
'3838257 konnte sich nicht anmelden: Verbindung nicht
mo'glich' "
he then further took the time to provide a patch :-)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 03 Feb 2003 13:57:25 +0000 |
parents | 3196d9044a45 |
children | 2ad2f5caeb81 |
comparison
equal
deleted
inserted
replaced
4510:4c394222c732 | 4511:238e1dd2f1a7 |
---|---|
1 /* | 1 /* |
2 * gaim - Gadu-Gadu Protocol Plugin | 2 * gaim - Gadu-Gadu Protocol Plugin |
3 * $Id: gg.c 4766 2003-01-31 13:03:47Z faceprint $ | 3 * $Id: gg.c 4787 2003-02-03 13:57:25Z lschiere $ |
4 * | 4 * |
5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> | 5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> |
6 * | 6 * |
7 * This program is free software; you can redistribute it and/or modify | 7 * This program is free software; you can redistribute it and/or modify |
8 * it under the terms of the GNU General Public License as published by | 8 * it under the terms of the GNU General Public License as published by |
304 debug_printf("main_callback enter: begin\n"); | 304 debug_printf("main_callback enter: begin\n"); |
305 | 305 |
306 if (gd->sess->fd != source) | 306 if (gd->sess->fd != source) |
307 gd->sess->fd = source; | 307 gd->sess->fd = source; |
308 | 308 |
309 if (source != 0) { | 309 if (source == 0) { |
310 hide_login_progress(gc, _("Could not connect")); | 310 hide_login_progress(gc, _("Could not connect")); |
311 signoff(gc); | 311 signoff(gc); |
312 return; | 312 return; |
313 } | 313 } |
314 | 314 |
421 close(source); | 421 close(source); |
422 return; | 422 return; |
423 } | 423 } |
424 debug_printf("Found GG connection\n"); | 424 debug_printf("Found GG connection\n"); |
425 | 425 |
426 if (source != 0) { | 426 if (source == 0) { |
427 hide_login_progress(gc, _("Unable to connect.")); | 427 hide_login_progress(gc, _("Unable to connect.")); |
428 signoff(gc); | 428 signoff(gc); |
429 return; | 429 return; |
430 } | 430 } |
431 | 431 |
932 g_free(hdata); | 932 g_free(hdata); |
933 close(source); | 933 close(source); |
934 return; | 934 return; |
935 } | 935 } |
936 | 936 |
937 if (source != 0) { | 937 if (source == 0) { |
938 g_free(request); | 938 g_free(request); |
939 g_free(hdata); | 939 g_free(hdata); |
940 return; | 940 return; |
941 } | 941 } |
942 | 942 |