From d62aa577c315ec7a2049d465ad3e35a6089191f3 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Thu, 10 Feb 2011 15:55:50 +0100 Subject: [PATCH] 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 --- nsswitch/winbind_krb5_locator.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/nsswitch/winbind_krb5_locator.c b/nsswitch/winbind_krb5_locator.c index db6e8d0..e921cae 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; } -- 1.7.4