]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl/crt-list: crt-list could end without a \n
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 16 Sep 2020 09:55:09 +0000 (11:55 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 16 Sep 2020 09:55:09 +0000 (11:55 +0200)
commit0354b658f061d00d5ab4b728d7deeff2c8f1503a
tree7f7a22bf99120a1cfcb868984182fcc7f0e015d5
parenta45982605607f8acea82d39ce6ddeda3c1e42d4c
BUG/MINOR: ssl/crt-list: crt-list could end without a \n

Since the refactoring of the crt-list, the same function is used to
parse a crt-list file and a crt-list line on the CLI.

The assumption that a line on the CLI and a line in a file is finished
by a \n was made. However that is potentialy not the case with a file
which does not finish by a \n.

This patch fixes issue #860 and must be backported in 2.2.
src/ssl_crtlist.c