src/sslconn.c

changeset 14228
2c0faf176ab3
parent 14222
71d8761db708
child 14229
17cf4faa355c
--- a/src/sslconn.c	Thu Aug 17 14:07:20 2006 +0000
+++ b/src/sslconn.c	Thu Aug 17 15:19:12 2006 +0000
@@ -71,6 +71,7 @@
 {
 	GaimSslConnection *gsc;
 	GaimSslOps *ops;
+	void (*connect_func)(GaimSslConnection *gsc);
 
 	gsc = data;
 	gsc->connect_info = NULL;
@@ -87,7 +88,8 @@
 	gsc->fd = source;
 
 	ops = gaim_ssl_get_ops();
-	ops->connect(gsc);
+	connect_func = (ops->connect);
+	connect_func(gsc);
 }
 
 GaimSslConnection *
@@ -158,6 +160,7 @@
 {
 	GaimSslConnection *gsc;
 	GaimSslOps *ops;
+	void (*connect_func)(GaimSslConnection *gsc);
 
 	g_return_val_if_fail(fd != -1,                NULL);
 	g_return_val_if_fail(func != NULL,            NULL);
@@ -177,7 +180,8 @@
 	gsc->fd              = fd;
 
 	ops = gaim_ssl_get_ops();
-	ops->connect(gsc);
+	connect_func = ops->connect;
+	connect_func(gsc);
 
 	return (GaimSslConnection *)gsc;
 }

mercurial