From 470fb7a5fbeb2f8a1eba68c11fddeb1494fceaaa Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 14 Jul 2016 11:42:21 +0200 Subject: [PATCH] !0 is not necessarily 1 --- src/stub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stub.c b/src/stub.c index 30e80125..2b6f9c36 100644 --- a/src/stub.c +++ b/src/stub.c @@ -1597,7 +1597,7 @@ upstream_valid_and_open(getdns_upstream *upstream, return 1; /* Connection is complete, we know the auth status so check*/ if (upstream->conn_state == GETDNS_CONN_OPEN && - !upstream_auth_status_ok(upstream, netreq) == 1) + !upstream_auth_status_ok(upstream, netreq)) return 0; /* We must have a TLS connection still setting up so schedule and the write code will check again once the connection is complete*/