diff src/protocols/oscar/ft.c @ 9070:f13172eed3ad

[gaim-migrate @ 9846] This fixes what is hopefully the last common direct connect segfault. Basicly, we were memcpying cookies, and one was null. This was because our get the cookie function was returning null, because it checked if the conn was a direct im conn and it wasn't. It was a listening conn instead. So this adds NULL checks, and makes the get cookie function do less sanity checking, since it was failing some valid cases. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Wed, 26 May 2004 04:55:10 +0000
parents 460d02fe03df
children 30a812571a6b
line wrap: on
line diff
--- a/src/protocols/oscar/ft.c	Wed May 26 03:28:36 2004 +0000
+++ b/src/protocols/oscar/ft.c	Wed May 26 04:55:10 2004 +0000
@@ -423,10 +423,6 @@
 	if (!conn || !conn->internal)
 		return NULL;
 
-	if ((conn->type != AIM_CONN_TYPE_RENDEZVOUS) ||
-			(conn->subtype != AIM_CONN_SUBTYPE_OFT_DIRECTIM))
-		return NULL;
-
 	intdata = (struct aim_odc_intdata *)conn->internal;
 
 	return intdata->cookie;