about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-08-24 16:48:07 -0400
committerJosh Rickmar <jrick@devio.us>2012-08-24 16:48:07 -0400
commit78b12002823904c9143a632492e294ea4f071e47 (patch)
treeab7340daf9ee346a98616d0523937d372cb1b98d
parentb8e326408ea7dc00e6c9a305a7f2a2d68435c2d9 (diff)
downloadxombrero-78b12002823904c9143a632492e294ea4f071e47.tar.gz
Fix cert checking thread to make sure t is always still valid
-rw-r--r--xombrero.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/xombrero.c b/xombrero.c
index 5dfad34..e3ec499 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -3628,7 +3628,7 @@ get_css_name(const char *col_str)
 #endif
 
 void
-color_address_bar(gpointer p)
+check_certs(gpointer p)
 {
 	struct tab		*tt, *t = p;
 	gchar			*col_str = XT_COLOR_WHITE;
@@ -3737,6 +3737,9 @@ white:
 
 	if (error_str && error_str[0] != '\0')
 		show_oops(t, "%s", error_str);
+
+	check_cert_changes(t, u);
+
 #ifdef USE_THREADS
 	t->thread = NULL;
 #endif
@@ -3751,13 +3754,6 @@ done:
 }
 
 void
-check_certs(gpointer p)
-{
-	color_address_bar((struct tab *)p);
-	check_cert_changes((struct tab *)p, get_uri((struct tab *)p));
-}
-
-void
 show_ca_status(struct tab *t, const char *uri)
 {
 	gchar			*col_str = XT_COLOR_WHITE;