]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl: add SSL_SERVER_LOCK label in threads.h
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 10 Feb 2021 15:17:19 +0000 (16:17 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 10 Feb 2021 15:17:19 +0000 (16:17 +0100)
Amaury reported that the commit 3ce6eed ("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 where 3ce6eed is backported. (2.4 only for now)

include/haproxy/thread.h

index 9982a763fa2dfbfc2a6858e55e7cf3591975f5cd..bdabcacce4c348c4e4c5a4ef3d8f7a145120fbd3 100644 (file)
@@ -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 */