commit 9343744a6d163409b06bd8dcd26a988ada991b76 Author: Quentin Rameau <quinq@fifth.space> AuthorDate: Tue Jul 14 13:58:57 2015 +0200 Commit: Quentin Rameau <quinq@fifth.space> CommitDate: Tue Jul 14 13:58:57 2015 +0200
Fix ssl failure detection Thanks to hendry <hen...@webconverger.com> for testing. diff --git a/surf.c b/surf.c index bad380c..40384e8 100644 --- a/surf.c +++ b/surf.c @@ -624,7 +624,8 @@ loadchanged(WebKitWebView *view, WebKitLoadEvent event, Client *c) { break; case WEBKIT_LOAD_COMMITTED: uri = geturi(c); - if (webkit_web_view_get_tls_info(c->view, NULL, &tlsflags)) { + if (webkit_web_view_get_tls_info(c->view, NULL, &tlsflags) && + tlsflags) { c->sslfailed = TRUE; } setatom(c, AtomUri, uri);