Skip to content

Commit

Permalink
config: changed initialization of cipherlist_
Browse files Browse the repository at this point in the history
- this bug can cause a daemon crash because of a ill-casted pointer
- it can be reproduced when setting the cipherlist directive in the tls configuration
  • Loading branch information
franku committed Jan 9, 2019
1 parent aa87b6b commit 4ba47fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/lib/parse_conf.h
Expand Up @@ -80,7 +80,7 @@ struct s_kw {
{ "TlsRequire", CFG_TYPE_BOOL, ITEM(res.tls_require_), 0, CFG_ITEM_DEFAULT, "false", NULL, \
"Without setting this to yes, Bareos can fall back to use unencrypted connections. " \
"Enabling this implicitly sets \"TLS Enable = yes\"." }, \
{ "TlsCipherList", CFG_TYPE_STR, ITEM(res.cipherlist_), 0, CFG_ITEM_PLATFORM_SPECIFIC, NULL, NULL, \
{ "TlsCipherList", CFG_TYPE_STDSTRDIR, ITEM(res.cipherlist_), 0, CFG_ITEM_PLATFORM_SPECIFIC, NULL, NULL, \
"List of valid TLS Ciphers." }, \
{ "TlsDhFile", CFG_TYPE_STDSTRDIR, ITEM(res.tls_cert_.dhfile_), 0, 0, NULL, NULL, \
"Path to PEM encoded Diffie-Hellman parameter file. " \
Expand Down

0 comments on commit 4ba47fb

Please sign in to comment.