src/protocols/yahoo/outgoing.c

changeset 2455
014bd5a2d3fe
parent 2086
007508451e2c
--- a/src/protocols/yahoo/outgoing.c	Tue Oct 09 01:26:17 2001 +0000
+++ b/src/protocols/yahoo/outgoing.c	Tue Oct 09 01:38:16 2001 +0000
@@ -49,7 +49,7 @@
 	struct yahoo_packet *pkt;
 	int ret;
 
-	if (!session || !conn)
+	if (!session || !session->login || !conn || !active_id)
 		return 0;
 
 	if (!(pkt = g_new0(struct yahoo_packet, 1)))
@@ -151,6 +151,9 @@
 	if (!session)
 		return 0;
 
+	if (!session->login)
+		return 0;
+
 	if (!(conn = yahoo_getconn_type(session, YAHOO_CONN_TYPE_MAIN)))
 		return 0;
 

mercurial