]> code.citadel.org Git - citadel.git/blobdiff - citadel/auth.c
Updated the comments in serv_smtp.c to reflect that it is strictly a server now.
[citadel.git] / citadel / auth.c
index 501008633a09cd1b4ac7a947796f8d99a0dd323e..ae09354f230627960660a8d44a9e0b4291c0a029 100644 (file)
@@ -112,11 +112,12 @@ int validate_password(uid_t uid, const char *pass)
        int retval = 0;
        int flags = 0;
 
-       flags = 0;      /* silences compiler warning */
-
 #ifdef PAM_DATA_SILENT
-       flags = ( flags | PAM_DATA_SILENT ) ;
+       flags = PAM_DATA_SILENT;
+#else
+       flags = 0;
 #endif /* PAM_DATA_SILENT */
+
        if ((pw = getpwuid(uid)) == NULL) {
                return retval;
        }