mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-09 00:32:33 -04:00
MINOR: ssl: add SSL_SERVER_LOCK label in threads.h
Amaury reported that the commit3ce6eed("MEDIUM: ssl: add a rwlock for SSL server session cache") introduced some warning during compilation: include/haproxy/thread.h|411 col 2| warning: enumeration value 'SSL_SERVER_LOCK' not handled in switch [-Wswitch] This patch fix the issue by adding the right entry in the switch block. Must be backported where3ce6eedis backported. (2.4 only for now)
This commit is contained in:
parent
826f3ab5e6
commit
7b41654495
1 changed files with 1 additions and 0 deletions
|
|
@ -442,6 +442,7 @@ static inline const char *lock_label(enum lock_label label)
|
|||
case PROTO_LOCK: return "PROTO";
|
||||
case CKCH_LOCK: return "CKCH";
|
||||
case SNI_LOCK: return "SNI";
|
||||
case SSL_SERVER_LOCK: return "SSL_SERVER";
|
||||
case SFT_LOCK: return "SFT";
|
||||
case OTHER_LOCK: return "OTHER";
|
||||
case LOCK_LABELS: break; /* keep compiler happy */
|
||||
|
|
|
|||
Loading…
Reference in a new issue