summaryrefslogtreecommitdiffhomepage
path: root/svr-authpam.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2016-01-20 21:24:36 +0800
committerMatt Johnston <matt@ucc.asn.au>2016-01-20 21:24:36 +0800
commit1fc1559d156648bac94d3fa51901a89619fceac7 (patch)
tree2d33c8c29105a52aca94492094ad92e7196162f0 /svr-authpam.c
parentde70b02c2f357d6a2fd51b2de3bec2e0f345d5b1 (diff)
parentde1993a1fdc12355ee90da357128d3ec43522c57 (diff)
Merge pull request #21 from Chocobo1/fix
Fix warnings
Diffstat (limited to 'svr-authpam.c')
-rw-r--r--svr-authpam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-authpam.c b/svr-authpam.c
index 101017c..98505ba 100644
--- a/svr-authpam.c
+++ b/svr-authpam.c
@@ -218,7 +218,7 @@ void svr_auth_pam() {
}
/* just to set it to something */
- if ((rc = pam_set_item(pamHandlep, PAM_TTY, "ssh") != PAM_SUCCESS)) {
+ if ((rc = pam_set_item(pamHandlep, PAM_TTY, "ssh")) != PAM_SUCCESS) {
dropbear_log(LOG_WARNING, "pam_set_item() failed, rc=%d, %s",
rc, pam_strerror(pamHandlep, rc));
goto cleanup;