Skip to content

Commit 2f598dc

Browse files
committed
mod_autht_jwt: Use unsigned rather than signed one-bit fields.
Or their non-zero value should be considered -1 rather than 1. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916300 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9ef9e5a commit 2f598dc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/aaa/mod_autht_jwt.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,15 @@ typedef struct {
7272
apr_hash_t *claims;
7373
apr_array_header_t *signs;
7474
apr_array_header_t *verifies;
75-
int signs_set:1;
76-
int verifies_set:1;
77-
int fake_set:1;
75+
unsigned int signs_set :1,
76+
verifies_set :1;
7877
} auth_bearer_config_rec;
7978

8079
typedef struct {
8180
const char *library;
8281
const char *params;
8382
apr_crypto_t **crypto;
84-
int library_set;
83+
unsigned int library_set :1;
8584
} auth_bearer_conf;
8685

8786
static int auth_bearer_init(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp,

0 commit comments

Comments
 (0)