summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-08-06 21:33:35 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-08-08 16:25:46 +0200
commit6f68a7389fbf7297e672ffc4bc25a4e9b7897218 (patch)
treef1753538bc0e03c0db100084dcae10a8d4b34a8a /src
parent2ed0dc0bbe1335153339cc05fac7f6bfed12c86b (diff)
downloadsssd-6f68a7389fbf7297e672ffc4bc25a4e9b7897218.tar.gz
sssd-6f68a7389fbf7297e672ffc4bc25a4e9b7897218.tar.bz2
sssd-6f68a7389fbf7297e672ffc4bc25a4e9b7897218.zip
Allocate on top of a talloc context, not NULL
Diffstat (limited to 'src')
-rw-r--r--src/providers/krb5/krb5_utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c
index f92a2cc6..8b15fc35 100644
--- a/src/providers/krb5/krb5_utils.c
+++ b/src/providers/krb5/krb5_utils.c
@@ -547,6 +547,9 @@ create_ccache_dir_head(const char *parent, pcre *illegal_re,
char *end;
errno_t ret;
+ tmp_ctx = talloc_new(NULL);
+ if (!tmp_ctx) return ENOMEM;
+
ccdirname = talloc_strdup(tmp_ctx, parent);
if (ccdirname == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, ("talloc_strdup failed.\n"));