[hackers] [surf] Fix ssl failure detection || Quentin Rameau

From: <git_AT_suckless.org>
Date: Wed, 15 Jul 2015 11:54:04 +0200 (CEST)

commit 9343744a6d163409b06bd8dcd26a988ada991b76
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Tue Jul 14 13:58:57 2015 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Tue Jul 14 13:58:57 2015 +0200

    Fix ssl failure detection
    
    Thanks to hendry <hendry_AT_webconverger.com> for testing.

diff --git a/surf.c b/surf.c
index bad380c..40384e8 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -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);
Received on Wed Jul 15 2015 - 11:54:04 CEST

This archive was generated by hypermail 2.3.0 : Wed Jul 15 2015 - 12:00:14 CEST