diff options
author | Josh Rickmar <jrick@devio.us> | 2012-07-10 18:10:39 -0400 |
---|---|---|
committer | Josh Rickmar <jrick@devio.us> | 2012-07-10 18:10:39 -0400 |
commit | ba3c43609ca28e977e07601260f9cb7f471a69e7 (patch) | |
tree | c26c34203b94e2a3b1057f3340d52d358642f295 | |
parent | d86b221bdcacac7d70289048d273980cacbe0a64 (diff) | |
download | xombrero-ba3c43609ca28e977e07601260f9cb7f471a69e7.tar.gz |
Ran into a segfault, not 100% sure but this might provide a fix.
-rw-r--r-- | xombrero.c | 3 |
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)) |