s3: Simplify generate_krb5_ccache slightly
authorVolker Lendecke <vl@samba.org>
Fri, 10 Sep 2010 12:34:19 +0000 (14:34 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 10 Sep 2010 19:36:07 +0000 (12:36 -0700)
strequal deals with a NULL string input just fine

source3/winbindd/winbindd_pam.c

index c828935f2a8e2ec9ba683f51923a122ecc235afb..7a77b186d7efe3b60fb914852b31df318ba2e136 100644 (file)
@@ -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")) {