aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tls-verifier.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-08-18 22:44:30 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2010-08-19 01:18:56 +0800
commit9005c6a1357b612d9a3bce36dd6326da487ab728 (patch)
treee8763aade806335f3dd4b055c1005ab641ba8327 /libempathy/empathy-tls-verifier.c
parenta272c04575698908bff1363f3d652cc67876e599 (diff)
downloadgsoc2013-empathy-9005c6a1357b612d9a3bce36dd6326da487ab728.tar
gsoc2013-empathy-9005c6a1357b612d9a3bce36dd6326da487ab728.tar.gz
gsoc2013-empathy-9005c6a1357b612d9a3bce36dd6326da487ab728.tar.bz2
gsoc2013-empathy-9005c6a1357b612d9a3bce36dd6326da487ab728.tar.lz
gsoc2013-empathy-9005c6a1357b612d9a3bce36dd6326da487ab728.tar.xz
gsoc2013-empathy-9005c6a1357b612d9a3bce36dd6326da487ab728.tar.zst
gsoc2013-empathy-9005c6a1357b612d9a3bce36dd6326da487ab728.zip
Don't allow calling verify_async() twice
Diffstat (limited to 'libempathy/empathy-tls-verifier.c')
-rw-r--r--libempathy/empathy-tls-verifier.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c
index c2169f0fd..01548b325 100644
--- a/libempathy/empathy-tls-verifier.c
+++ b/libempathy/empathy-tls-verifier.c
@@ -695,6 +695,8 @@ empathy_tls_verifier_verify_async (EmpathyTLSVerifier *self,
{
EmpathyTLSVerifierPriv *priv = GET_PRIV (self);
+ g_return_if_fail (priv->verify_result == NULL);
+
priv->verify_result = g_simple_async_result_new (G_OBJECT (self),
callback, user_data, NULL);