summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-10 14:34:19 +0200
committerVolker Lendecke <vl@samba.org>2010-09-10 12:36:07 -0700
commitaa00d331a606efc1750fe76debb16dd11f87e333 (patch)
tree6970379a372d280f31805ded6f84a1c7bdb42bdf /source3
parente8509589287ea04c6290dd127d3ef0c3e0b3f49d (diff)
downloadsamba-aa00d331a606efc1750fe76debb16dd11f87e333.tar.gz
samba-aa00d331a606efc1750fe76debb16dd11f87e333.tar.bz2
samba-aa00d331a606efc1750fe76debb16dd11f87e333.zip
s3: Simplify generate_krb5_ccache slightly
strequal deals with a NULL string input just fine
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_pam.c4
1 files changed, 0 insertions, 4 deletions
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")) {