1 |
diff -up ./plugins/sudoers/sssd.c.mailfix ./plugins/sudoers/sssd.c |
2 |
--- ./plugins/sudoers/sssd.c.mailfix 2015-12-15 15:11:20.353612132 +0100 |
3 |
+++ ./plugins/sudoers/sssd.c 2015-12-15 15:11:46.048374417 +0100 |
4 |
@@ -788,7 +788,7 @@ sudo_sss_result_get(struct sudo_nss *nss |
5 |
switch (sss_error) { |
6 |
case 0: |
7 |
if (u_sss_result != NULL) { |
8 |
- if (state != NULL) { |
9 |
+ if (state != NULL && u_sss_result->num_rules > 0) { |
10 |
sudo_debug_printf(SUDO_DEBUG_DEBUG, "state |= USERMATCH"); |
11 |
*state |= _SUDO_SSS_STATE_USERMATCH; |
12 |
} |