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:
parent
f802075f08
commit
15c33ada6b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user