From 78b12002823904c9143a632492e294ea4f071e47 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Fri, 24 Aug 2012 16:48:07 -0400 Subject: Fix cert checking thread to make sure t is always still valid --- xombrero.c | 12 ++++-------- 1 file 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 @@ -3750,13 +3753,6 @@ done: #endif } -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) { -- cgit 1.4.1-2-gfad0