Skip to content

Commit

Permalink
remove special case for root console from GetTlsPskByFullyQualifiedRe…
Browse files Browse the repository at this point in the history
…sourceName
  • Loading branch information
pstorz authored and franku committed Sep 4, 2018
1 parent b087605 commit 76bb573
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions core/src/dird/dird_conf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3783,18 +3783,11 @@ static void PrintConfigCb(ResourceItem *items, int i, PoolMem &cfg_str, bool hid
static void ConfigReadyCallback(ConfigurationParser &my_config)
{

const std::string ua("*UserAgent*");

bool success = false;
if (fq_name == ua) {
psk_return_value = me->password.value;
success = true;
} else {
ConsoleResource *res = reinterpret_cast<ConsoleResource*>(my_config->GetResWithName(R_CONSOLE, fq_name.c_str()));
if(res) {
psk_return_value = res->password.value;
success = true;
}
ConsoleResource *res = reinterpret_cast<ConsoleResource*>(my_config->GetResWithName(R_CONSOLE, fq_name.c_str()));
if(res) {
psk_return_value = res->password.value;
success = true;
}
return success;
}
Expand Down

0 comments on commit 76bb573

Please sign in to comment.