Commit 361701c4 authored by Alex Guzman's avatar Alex Guzman Committed by Facebook Github Bot

Fix order of operations ambiguity

Summary: Fixes a warning about ambiguity between & and ==

Reviewed By: knekritz

Differential Revision: D17500996

fbshipit-source-id: 9a3d1da499bf25aff3d97bc3ea40bf5a1d19257d
parent 3a5914c6
...@@ -497,7 +497,7 @@ uint32_t X509_get_extension_flags(X509* x) { ...@@ -497,7 +497,7 @@ uint32_t X509_get_extension_flags(X509* x) {
uint32_t X509_get_key_usage(X509* x) { uint32_t X509_get_key_usage(X509* x) {
// Call get_extension_flags rather than accessing directly to force loading // Call get_extension_flags rather than accessing directly to force loading
// of flags // of flags
if (X509_get_extension_flags(x) & EXFLAG_KUSAGE == EXFLAG_KUSAGE) { if ((X509_get_extension_flags(x) & EXFLAG_KUSAGE) == EXFLAG_KUSAGE) {
return x->ex_kusage; return x->ex_kusage;
} }
return UINT32_MAX; return UINT32_MAX;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment