about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--xombrero.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/xombrero.c b/xombrero.c
index f7baf49..6e83e72 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -1907,8 +1907,10 @@ cert_cmd(struct tab *t, struct karg *args)
 done:
 	soup_uri_free(su);
 
-	if (error_str && strlen(error_str))
+	if (error_str && strlen(error_str)) {
 		show_oops(t, "%s", error_str);
+		return (1);
+	}
 	return (0);
 }
 
@@ -3755,12 +3757,6 @@ show_ca_status(struct tab *t, const char *uri)
 			break;
 		}
 
-	snprintf(file, sizeof file, "%s" PS "%s", certs_cache_dir, domain);
-	if (warn_cert_changes) {
-		if (check_cert_changes(t, cert, file, uri))
-			nocolor = 1;
-	}
-
 	snprintf(file, sizeof file, "%s" PS "%s", certs_dir, domain);
 	chain = g_strdup("");
 	if ((trust = check_local_certs(file, cert, &chain)) == CERT_LOCAL)
@@ -3769,6 +3765,12 @@ show_ca_status(struct tab *t, const char *uri)
 		g_free(t->pem);
 	t->pem = chain;
 
+	snprintf(file, sizeof file, "%s" PS "%s", certs_cache_dir, domain);
+	if (warn_cert_changes) {
+		if (check_cert_changes(t, cert, file, uri))
+			nocolor = 1;
+	}
+
 done:
 	g_object_unref(msg);
 	if (!strcmp(col_str, XT_COLOR_WHITE) || nocolor) {
.0&id=78e9f3234e05afd8fa712849a21b2b1cdb96aec1'>^
4e9450f9 ^
36e4e71e ^







78a7d762 ^
36e4e71e ^

78a7d762 ^
36e4e71e ^










































306c76d8 ^















36e4e71e ^





b6aed5ef ^
36e4e71e ^




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105