changeset 1238:c59c10803afd

Fix parentheses weird placement
author Chocobo1 <Chocobo1@users.noreply.github.com>
date Tue, 05 Jan 2016 12:49:04 +0800
parents 888e3d17e962
children 00d7fc7b112b
files svr-authpam.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/svr-authpam.c	Tue Jan 05 12:32:33 2016 +0800
+++ b/svr-authpam.c	Tue Jan 05 12:49:04 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;