Skip to content

Commit

Permalink
ssl-proxy-openssl: Fix comparison to stricly boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and GitLab committed May 10, 2017
1 parent f08b05d commit 722c977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/login-common/ssl-proxy-openssl.c
Expand Up @@ -148,7 +148,7 @@ static unsigned int ssl_server_context_hash(const struct ssl_server_context *ctx
if (cert[n] == NULL) continue;
for (i = 0; i < 16 && cert[n][i] != '\0'; i++) {
h = (h << 4) + cert[n][i];
if ((g = h & 0xf0000000UL)) {
if ((g = h & 0xf0000000UL) != 0) {
h = h ^ (g >> 24);
h = h ^ g;
}
Expand Down

0 comments on commit 722c977

Please sign in to comment.