Skip to content

Commit

Permalink
fit for test
Browse files Browse the repository at this point in the history
  • Loading branch information
linyows committed Feb 16, 2025
1 parent 443a1e8 commit fa4a574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nss_octopass-group.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ enum nss_status _nss_octopass_setgrent_locked(int stayopen)
return NSS_STATUS_UNAVAIL;
}

if (!json_is_array(root)) {
if (!json_is_array(root) || json_array_size(root) == 0) {
if (con.syslog) {
syslog(LOG_INFO, "%s[L%d] -- status: %s", __func__, __LINE__, "UNAVAIL");
}
Expand Down

0 comments on commit fa4a574

Please sign in to comment.