diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-12-02 00:40:01 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2011-10-24 19:16:07 +0200 |
commit | 8ea73cedf27010900b70553ca100799e64963595 (patch) | |
tree | e6d4dcff0d3e59c24d98ee718061207e6b4c0e5d | |
parent | d01176ccca9440b977ec6aa32eaa8c6148c95362 (diff) | |
download | samba-8ea73cedf27010900b70553ca100799e64963595.tar.gz samba-8ea73cedf27010900b70553ca100799e64963595.tar.xz samba-8ea73cedf27010900b70553ca100799e64963595.zip |
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
(cherry picked from commit 363b81899401f01de11ddbd8036b55a472806b38)
-rw-r--r-- | libcli/auth/spnego_parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcli/auth/spnego_parse.c b/libcli/auth/spnego_parse.c index 86b083d805c..27ede1bde47 100644 --- a/libcli/auth/spnego_parse.c +++ b/libcli/auth/spnego_parse.c @@ -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; |