]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: ssl/cli: remove unused code in dump_crtlist_conf
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 21 May 2024 08:58:09 +0000 (10:58 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 21 May 2024 08:58:09 +0000 (10:58 +0200)
This code was never used because space is never define before:

    if (space) chunk_appendf(buf, " ");

Should fix issue #2571.

src/ssl_crtlist.c

index d8e100318a640d42028e789a52d18045285979c8..d1c7ef992cf15862ab7c34d607a6a3f86a6baa4b 100644 (file)
@@ -854,7 +854,6 @@ static void dump_crtlist_conf(struct buffer *buf, const struct ssl_bind_conf *co
                char *ptr = conf->npn_str;
                int comma = 0;
 
-               if (space) chunk_appendf(buf, " ");
                chunk_appendf(buf, "npn ");
                while (len) {
                        unsigned short size;