diff plugins/msn/msn.c @ 1866:466fc4ada7cb

[gaim-migrate @ 1876] more proxy fixes. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 20 May 2001 10:35:47 +0000
parents 5cb89cf24f45
children a02584b98823
line wrap: on
line diff
--- a/plugins/msn/msn.c	Sun May 20 09:09:02 2001 +0000
+++ b/plugins/msn/msn.c	Sun May 20 10:35:47 2001 +0000
@@ -571,7 +571,7 @@
 			msn_answer_callback, mc);
 		g_strfreev(address);
 		g_strfreev(res);
-		if (user->gc && (mc->fd < 0)) {
+		if (!user->gc || (mc->fd < 0)) {
 			/* Looks like we had an error connecting. */
 			g_free(mc->session);
 			g_free(mc->secret);
@@ -813,7 +813,7 @@
 			atoi(gc->user->proto_opt[USEROPT_PROXYTYPE]),
 			gc->user->proto_opt[USEROPT_USER], gc->user->proto_opt[USEROPT_PASS],
 			msn_login_callback, gc);
-		if (user->gc && (md->fd < 0)) {
+		if (!user->gc || (md->fd < 0)) {
 			g_strfreev(res);
 			hide_login_progress(gc, "Error connecting to server");
 			signoff(gc);
@@ -919,7 +919,7 @@
 			atoi(user->proto_opt[USEROPT_PROXYTYPE]),
 			user->proto_opt[USEROPT_USER], user->proto_opt[USEROPT_PASS],
 			msn_login_callback, gc);
-	if (user->gc && (md->fd < 0)) {
+	if (!user->gc || (md->fd < 0)) {
 		hide_login_progress(gc, "Error connecting to server");
 		signoff(gc);
 		return;