summaryrefslogtreecommitdiff
path: root/source4/kdc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-15 05:49:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:22 -0500
commit4ce5f82979ef128690a400fefd7f78110a2c4f98 (patch)
treefc65de16dfbf480dd072dead7c2f97254c845551 /source4/kdc
parenta088c2297d68385eb2869e73aaefd440606c5b4f (diff)
downloadsamba-4ce5f82979ef128690a400fefd7f78110a2c4f98.tar.gz
samba-4ce5f82979ef128690a400fefd7f78110a2c4f98.tar.bz2
samba-4ce5f82979ef128690a400fefd7f78110a2c4f98.zip
r14427: don't reference short_princ after it is freed
(This used to be commit 8ca4681861e24ddf7c4abcc97a4cf0e001d13e24)
Diffstat (limited to 'source4/kdc')
-rw-r--r--source4/kdc/hdb-ldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/kdc/hdb-ldb.c b/source4/kdc/hdb-ldb.c
index 742c067194..2a2ebb059c 100644
--- a/source4/kdc/hdb-ldb.c
+++ b/source4/kdc/hdb-ldb.c
@@ -478,7 +478,7 @@ static krb5_error_code LDB_lookup_principal(krb5_context context, struct ldb_con
short_princ_talloc = talloc_strdup(mem_ctx, short_princ);
free(short_princ);
- if (!short_princ || !short_princ_talloc) {
+ if (!short_princ_talloc) {
krb5_set_error_string(context, "LDB_lookup_principal: talloc_strdup() failed!");
return ENOMEM;
}