diff options
author | Christoph Lohmann <20h@r-36.net> | 2014-01-30 19:35:54 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2014-01-30 19:35:54 +0100 |
commit | a78aec66302f36341ab44ef2fbb7d7555eeb755c (patch) | |
tree | bff165c1e2a3440eadd6891482b65c0e049f7251 | |
parent | 9eedabe3487193e29b0fe5f29a8d30dc314026cc (diff) | |
download | surf-a78aec66302f36341ab44ef2fbb7d7555eeb755c.tar.gz surf-a78aec66302f36341ab44ef2fbb7d7555eeb755c.tar.bz2 surf-a78aec66302f36341ab44ef2fbb7d7555eeb755c.zip |
Fix the ssl trusted check.
Thank you Steve Dee <mrdomino@gmail.com>!
-rw-r--r-- | surf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -601,8 +601,8 @@ loadstatuschange(WebKitWebView *view, GParamSpec *pspec, Client *c) { src = webkit_web_frame_get_data_source(frame); request = webkit_web_data_source_get_request(src); msg = webkit_network_request_get_message(request); - c->sslfailed = soup_message_get_flags(msg) - ^ SOUP_MESSAGE_CERTIFICATE_TRUSTED; + c->sslfailed = !(soup_message_get_flags(msg) + & SOUP_MESSAGE_CERTIFICATE_TRUSTED); } setatom(c, AtomUri, uri); break; |