summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-13 05:00:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:09 -0500
commit964373b25d3dc015951fb00d9c8c68632890a55e (patch)
tree5c6b0930325c537f0b8c61d59d6cc02b35f7138b /source4/dsdb
parent335d07d8114dbb654601ecb8d6d8ea45f94b5b67 (diff)
downloadsamba-964373b25d3dc015951fb00d9c8c68632890a55e.tar.gz
samba-964373b25d3dc015951fb00d9c8c68632890a55e.tar.bz2
samba-964373b25d3dc015951fb00d9c8c68632890a55e.zip
r14293: fixed some errors found with beam
(This used to be commit 230636a00ed9bd968356badad596ba7f93ba6c85)
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/password_hash.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c
index 2abf060a0f..6980fe48b8 100644
--- a/source4/dsdb/samdb/ldb_modules/password_hash.c
+++ b/source4/dsdb/samdb/ldb_modules/password_hash.c
@@ -496,6 +496,9 @@ static int password_hash_handle(struct ldb_module *module, struct ldb_request *r
continue;
}
ASN1_MALLOC_ENCODE(Key, buf, buf_size, &keys[i], &len, krb5_ret);
+ if (krb5_ret) {
+ return LDB_ERR_OPERATIONS_ERROR;
+ }
val.data = talloc_memdup(req, buf, len);
val.length = len;
@@ -549,6 +552,9 @@ static int password_hash_handle(struct ldb_module *module, struct ldb_request *r
return LDB_ERR_OPERATIONS_ERROR;
}
ASN1_MALLOC_ENCODE(Key, buf, buf_size, &key, &len, krb5_ret);
+ if (krb5_ret) {
+ return LDB_ERR_OPERATIONS_ERROR;
+ }
krb5_free_keyblock_contents(smb_krb5_context->krb5_context,
&key.key);