Skip to content

Commit

Permalink
fix #563
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmann committed Jan 17, 2024
1 parent a99142b commit 2907963
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
### Bugfixes

- Fixed a problem with the tmp dir path that could occur on some windows systems that prevented oidc-agent to start.
- Fixed a potential segmentation fault when the oidc-agent dir is empty and account configs are listed.

## oidc-agent 5.0.1

Expand Down
3 changes: 2 additions & 1 deletion src/utils/commonFeatures.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
#include "utils/system_runner.h"

void common_handleListConfiguredAccountConfigs() {
oidc_errno = OIDC_SUCCESS;
list_t* list = getAccountConfigFileList();
if (list == NULL) {
if (list == NULL || list->len == 0) {
if (oidc_errno != OIDC_SUCCESS) {
oidc_perror();
exit(EXIT_FAILURE);
Expand Down

0 comments on commit 2907963

Please sign in to comment.