diff --git a/src/slurmctld/acct_policy.c b/src/slurmctld/acct_policy.c
index 6e61e2dc5d77c360fcccc12300f1ed7fa28fd2f4..56c8d3032376b637d3b41f8d27b72fef60d0e526 100644
--- a/src/slurmctld/acct_policy.c
+++ b/src/slurmctld/acct_policy.c
@@ -1380,7 +1380,7 @@ static int _qos_policy_validate(job_desc_msg_t *job_desc,
 			if (strict_checking
 			    && job_desc->time_limit > qos_ptr->grp_wall) {
 				if (reason)
-					*reason = WAIT_ASSOC_GRP_WALL;
+					*reason = WAIT_QOS_GRP_WALL;
 				debug2("job submit for user %s(%u): "
 				       "time limit %u exceeds qos grp max %u",
 				       user_name,