1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

libcli/auth: let spnego_write_mech_types() check the asn1_load() return

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Dec  7 18:23:41 CET 2010 on sn-devel-104
This commit is contained in:
Stefan Metzmacher 2010-12-02 00:40:01 +01:00
parent f802075f08
commit 15c33ada6b

View File

@ -380,6 +380,10 @@ bool spnego_write_mech_types(TALLOC_CTX *mem_ctx,
{
struct asn1_data *asn1 = asn1_init(mem_ctx);
if (asn1 == NULL) {
return false;
}
/* Write mechTypes */
if (mech_types && *mech_types) {
int i;