Skip to content

Commit

Permalink
pam: Inform pam clients of connection errors
Browse files Browse the repository at this point in the history
  • Loading branch information
3v1n0 committed Jul 21, 2023
1 parent 7c87928 commit b3fbd82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pam/pam.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func pam_sm_authenticate(pamh *C.pam_handle_t, flags, argc C.int, argv **C.char)
UserName: &user,
})
if err != nil {
log.Debugf(context.TODO(), "Could not get current available brokers: %v", err)
sendAndLogError(pamh, "Could not get current available brokers: %v", err)

Check failure on line 199 in pam/pam.go

View workflow job for this annotation

GitHub Actions / Code sanity

Error return value is not checked (errcheck)
return C.PAM_AUTHINFO_UNAVAIL
}

Expand Down

0 comments on commit b3fbd82

Please sign in to comment.