summaryrefslogtreecommitdiff
path: root/nsswitch/winbind_krb5_locator.c
diff options
context:
space:
mode:
authorChristian Ambach <christian.ambach@de.ibm.com>2011-02-10 15:55:50 +0100
committerMichael Adam <obnox@samba.org>2011-02-10 17:01:18 +0100
commitd62aa577c315ec7a2049d465ad3e35a6089191f3 (patch)
tree4b99c4b12d5221e1801e1201b55a883fc8c7cf65 /nsswitch/winbind_krb5_locator.c
parent831974a762b890982e17bc641253ebaf8df4444d (diff)
downloadsamba-d62aa577c315ec7a2049d465ad3e35a6089191f3.tar.gz
samba-d62aa577c315ec7a2049d465ad3e35a6089191f3.tar.bz2
samba-d62aa577c315ec7a2049d465ad3e35a6089191f3.zip
nsswitch: fix a segfault in the krb5 locator plugin
after the number of retries was exceeded, the loop did not bail out correctly with an error and went on using a null pointer
Diffstat (limited to 'nsswitch/winbind_krb5_locator.c')
-rw-r--r--nsswitch/winbind_krb5_locator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/winbind_krb5_locator.c b/nsswitch/winbind_krb5_locator.c
index db6e8d0d6c..e921caea59 100644
--- a/nsswitch/winbind_krb5_locator.c
+++ b/nsswitch/winbind_krb5_locator.c
@@ -192,7 +192,7 @@ static krb5_error_code smb_krb5_locator_call_cbfunc(const char *name,
break;
}
- if (ret == EAI_AGAIN) {
+ if ((ret == EAI_AGAIN) && (count > 1)) {
count--;
continue;
}