git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e850958
)
s3: Simplify generate_krb5_ccache slightly
author
Volker Lendecke
<vl@samba.org>
Fri, 10 Sep 2010 12:34:19 +0000
(14:34 +0200)
committer
Volker 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
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_pam.c
b/source3/winbindd/winbindd_pam.c
index c828935f2a8e2ec9ba683f51923a122ecc235afb..7a77b186d7efe3b60fb914852b31df318ba2e136 100644
(file)
--- 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")) {