[SCM] Samba Shared Repository - branch v3-5-test updated

Karolin Seeger kseeger at samba.org
Thu Mar 17 08:14:47 MDT 2011


The branch, v3-5-test has been updated
       via  f5eba15 nsswitch: fix a segfault in the krb5 locator plugin
      from  dd2e6fd s3: Fix bug 8009 - net rap session cannot get username

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -----------------------------------------------------------------
commit f5eba15db82ed679d72dc8b13912d54919343314
Author: Christian Ambach <christian.ambach at de.ibm.com>
Date:   Thu Feb 10 15:55:50 2011 +0100

    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
    
    Fix bug #8008 (winbind krb5 locator crash).

-----------------------------------------------------------------------

Summary of changes:
 nsswitch/winbind_krb5_locator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

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;
 		}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list