Mercurial > dropbear
diff svr-authpam.c @ 1239:00d7fc7b112b
Merge pull request #21 from Chocobo1/fix
Fix warnings
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 20 Jan 2016 21:24:36 +0800 |
parents | c59c10803afd |
children | 750ec4ec4cbe |
line wrap: on
line diff
--- a/svr-authpam.c Tue Jan 19 00:34:37 2016 +0800 +++ b/svr-authpam.c Wed Jan 20 21:24:36 2016 +0800 @@ -218,7 +218,7 @@ } /* 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;