rlm_mschap: fix up password change test
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Mon, 17 Oct 2016 13:55:54 +0000 (14:55 +0100)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Mon, 17 Oct 2016 13:58:43 +0000 (14:58 +0100)
src/modules/rlm_mschap/auth_wbclient.c

index 4a7751a..a836195 100644 (file)
@@ -155,8 +155,8 @@ int do_auth_wbclient(rlm_mschap_t *inst, REQUEST *request,
                /*
                 * The password needs to be changed, so set rcode appropriately.
                 */
-               if (error->nt_status & NT_STATUS_PASSWORD_EXPIRED ||
-                   error->nt_status & NT_STATUS_PASSWORD_MUST_CHANGE) {
+               if (error->nt_status == NT_STATUS_PASSWORD_EXPIRED ||
+                   error->nt_status == NT_STATUS_PASSWORD_MUST_CHANGE) {
                        rcode = -648;
                }