]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: checks/server: use_ssl member must be signed
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 10:13:06 +0000 (12:13 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 10:13:06 +0000 (12:13 +0200)
include/types/checks.h
include/types/server.h

index 867d2f7cef9eb5a7d2e6d3a7bfee72e19fdf0fb4..8cf1c621809395c8a850c85d315db361a267dfa1 100644 (file)
@@ -141,7 +141,7 @@ struct check {
        short status, code;                     /* check result, check code */
        unsigned short port;                    /* the port to use for the health checks */
        char desc[HCHK_DESC_LEN];               /* health check description */
-       char use_ssl;                           /* use SSL for health checks (1: on, 0: server mode, -1: off) */
+       signed char use_ssl;                    /* use SSL for health checks (1: on, 0: server mode, -1: off) */
        int send_proxy;                         /* send a PROXY protocol header with checks */
        struct tcpcheck_rules *tcpcheck_rules;  /* tcp-check send / expect rules */
        struct tcpcheck_rule *current_step;     /* current step when using tcpcheck */
index a21411962a167c98fa39bc863981e5a633d6f8d4..80119a383276d3f1e748e6a6dc24ec7d2a58b19a 100644 (file)
@@ -201,7 +201,7 @@ struct server {
        enum obj_type obj_type;                 /* object type == OBJ_TYPE_SERVER */
        enum srv_state next_state, cur_state;   /* server state among SRV_ST_* */
        enum srv_admin next_admin, cur_admin;   /* server maintenance status : SRV_ADMF_* */
-       char use_ssl;                           /* ssl enabled (1: on, 0: disabled, -1 forced off)  */
+       signed char use_ssl;                    /* ssl enabled (1: on, 0: disabled, -1 forced off)  */
        unsigned int pp_opts;                   /* proxy protocol options (SRV_PP_*) */
        struct server *next;
        int cklen;                              /* the len of the cookie, to speed up checks */