1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r14293: fixed some errors found with beam

(This used to be commit 230636a00e)
This commit is contained in:
Andrew Tridgell 2006-03-13 05:00:45 +00:00 committed by Gerald (Jerry) Carter
parent 335d07d811
commit 964373b25d

View File

@ -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);