The branch, master has been updated
       via  aa00d33 s3: Simplify generate_krb5_ccache slightly
      from  e850958 Check all SMB_MALLOC returns correctly. Found by Andreas 
Moroder <[email protected]>.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit aa00d331a606efc1750fe76debb16dd11f87e333
Author: Volker Lendecke <[email protected]>
Date:   Fri Sep 10 14:34:19 2010 +0200

    s3: Simplify generate_krb5_ccache slightly
    
    strequal deals with a NULL string input just fine

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

Summary of changes:
 source3/winbindd/winbindd_pam.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index c828935..7a77b18 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -477,10 +477,6 @@ static const char *generate_krb5_ccache(TALLOC_CTX 
*mem_ctx,
                goto memory_ccache;
        }
 
-       if (!type || type[0] == '\0') {
-               goto memory_ccache;
-       }
-
        if (strequal(type, "FILE")) {
                gen_cc = talloc_asprintf(mem_ctx, "FILE:/tmp/krb5cc_%d", uid);
        } else if (strequal(type, "WRFILE")) {


-- 
Samba Shared Repository

Reply via email to