diff options
Diffstat (limited to 'source4/libcli/auth/spnego_parse.c')
-rw-r--r-- | source4/libcli/auth/spnego_parse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/libcli/auth/spnego_parse.c b/source4/libcli/auth/spnego_parse.c index 85e18ed4da..b38226c014 100644 --- a/source4/libcli/auth/spnego_parse.c +++ b/source4/libcli/auth/spnego_parse.c @@ -250,6 +250,11 @@ ssize_t spnego_read_data(DATA_BLOB data, struct spnego_data *token) ZERO_STRUCTP(token); ZERO_STRUCT(asn1); + + if (data.length == 0) { + return ret; + } + asn1_load(&asn1, data); switch (asn1.data[asn1.ofs]) { |