diff options
author | Josh Rickmar <jrick@devio.us> | 2012-08-24 16:48:07 -0400 |
---|---|---|
committer | Josh Rickmar <jrick@devio.us> | 2012-08-24 16:48:07 -0400 |
commit | 78b12002823904c9143a632492e294ea4f071e47 (patch) | |
tree | ab7340daf9ee346a98616d0523937d372cb1b98d | |
parent | b8e326408ea7dc00e6c9a305a7f2a2d68435c2d9 (diff) | |
download | xombrero-78b12002823904c9143a632492e294ea4f071e47.tar.gz |
Fix cert checking thread to make sure t is always still valid
-rw-r--r-- | xombrero.c | 12 |
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; |