summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-12-02 00:40:01 +0100
committerStefan Metzmacher <metze@samba.org>2010-12-07 18:23:41 +0100
commit15c33ada6b897ac46141aaae0f0333816b94448b (patch)
treea9a90e34baa3615828b72c0115d149af819f49e9 /libcli
parentf802075f08fe0d86f3d176f2302236aeb5834f3d (diff)
downloadsamba-15c33ada6b897ac46141aaae0f0333816b94448b.tar.gz
samba-15c33ada6b897ac46141aaae0f0333816b94448b.tar.bz2
samba-15c33ada6b897ac46141aaae0f0333816b94448b.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
Diffstat (limited to 'libcli')
-rw-r--r--libcli/auth/spnego_parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcli/auth/spnego_parse.c b/libcli/auth/spnego_parse.c
index 86b083d805..27ede1bde4 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;