about summary refs log tree commit diff stats
path: root/xombrero.c
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-05-18 09:54:06 -0400
committerJosh Rickmar <jrick@devio.us>2012-05-18 09:55:33 -0400
commit0d721d4a930735f0e852e2febdd679c1af874ddc (patch)
treee05657435f1c75a65de74c0b2d525e90b01a7381 /xombrero.c
parente6838ea12ffb341c2aabaaee9a9071f5a46a2c24 (diff)
downloadxombrero-0d721d4a930735f0e852e2febdd679c1af874ddc.tar.gz
Prevent a nasty bug where saved certificates were not being completely
checked for differences.  This will cause the URL bar to be colored
red if there are any differences between a saved and remote
certificate.
Diffstat (limited to 'xombrero.c')
-rw-r--r--xombrero.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xombrero.c b/xombrero.c
index daad246..f5b55e5 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -1842,7 +1842,7 @@ load_compare_cert(const gchar *uri, const gchar **error_str)
 			rv = CERT_BAD; /* critical */
 			goto freeit;
 		}
-		if (bcmp(r_cert_buf, cert_buf, sizeof cert_buf_sz)) {
+		if (bcmp(r_cert_buf, cert_buf, cert_buf_sz)) {
 			rv = CERT_BAD; /* critical */
 			goto freeit;
 		}