!0 is not necessarily 1

This commit is contained in:
Willem Toorop 2016-07-14 11:42:21 +02:00
parent fed4818c27
commit 470fb7a5fb
1 changed files with 1 additions and 1 deletions

View File

@ -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*/