diff options
-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; |