2010-05-14 [colin] 3.7.6cvs5
[claws.git] / src / gtk / sslcertwindow.c
index e3eb94f509de023916e3d3bedc3e9a363b4d3026..171b51cda107fea94cb49b9d49e12407310e75a3 100644 (file)
@@ -267,14 +267,15 @@ static gboolean sslcert_ask_hook(gpointer source, gpointer data)
 {
        SSLCertHookData *hookdata = (SSLCertHookData *)source;
 
+       if (hookdata == NULL) {
+               return FALSE;
+       }
+       
        if (prefs_common.skip_ssl_cert_check) {
                hookdata->accept = TRUE;
                return TRUE;
        }
 
-       if (hookdata == NULL) {
-               return FALSE;
-       }
        if (hookdata->old_cert == NULL) {
                if (hookdata->expired)
                        hookdata->accept = sslcertwindow_ask_expired_cert(hookdata->cert);