about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-07-10 18:10:39 -0400
committerJosh Rickmar <jrick@devio.us>2012-07-10 18:10:39 -0400
commitba3c43609ca28e977e07601260f9cb7f471a69e7 (patch)
treec26c34203b94e2a3b1057f3340d52d358642f295
parentd86b221bdcacac7d70289048d273980cacbe0a64 (diff)
downloadxombrero-ba3c43609ca28e977e07601260f9cb7f471a69e7.tar.gz
Ran into a segfault, not 100% sure but this might provide a fix.
-rw-r--r--xombrero.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xombrero.c b/xombrero.c
index 291c4f8..b5414f8 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -2092,7 +2092,8 @@ check_cert_changes(struct tab *t, const char *uri)
 		cert_cmd(t, &args);
 		break;
 	case CERT_BAD:
-		if ((soupuri = soup_uri_new(uri)) == NULL)
+		if ((soupuri = soup_uri_new(uri)) == NULL ||
+		    soupuri->host == NULL)
 			break;
 		find.domain = soupuri->host;
 		if (RB_FIND(sv_ignore_list, &svil, &find))
d='n76' href='#n76'>76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98