From aa00d331a606efc1750fe76debb16dd11f87e333 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 10 Sep 2010 14:34:19 +0200 Subject: s3: Simplify generate_krb5_ccache slightly strequal deals with a NULL string input just fine --- source3/winbindd/winbindd_pam.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index c828935f2a..7a77b186d7 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")) { -- cgit