Skip to content

Commit

Permalink
BAT segfaults when Password is missing from configuration
Browse files Browse the repository at this point in the history
Fixes #216: bat segfaults when Password is missing from configuration
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent e610f3b commit 7bc96b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt-console/bat_conf.cpp
Expand Up @@ -77,7 +77,7 @@ static RES_ITEM dir_items[] = {
{ "description", store_str, ITEM(dir_res.hdr.desc), 0, 0, NULL },
{ "dirport", store_pint32, ITEM(dir_res.DIRport), 0, ITEM_DEFAULT, DIR_DEFAULT_PORT },
{ "address", store_str, ITEM(dir_res.address), 0, ITEM_REQUIRED, NULL },
{ "password", store_password, ITEM(dir_res.password), 0, 0, NULL },
{ "password", store_password, ITEM(dir_res.password), 0, ITEM_REQUIRED, NULL },
{ "tlsauthenticate",store_bool, ITEM(dir_res.tls_authenticate), 0, 0, NULL },
{ "tlsenable", store_bool, ITEM(dir_res.tls_enable), 0, 0, NULL },
{ "tlsrequire", store_bool, ITEM(dir_res.tls_require), 0, 0, NULL },
Expand Down

0 comments on commit 7bc96b3

Please sign in to comment.