1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-04 16:58:42 +03:00

r1349: don't segfault with empty data_blob

metze
(This used to be commit a826accd55e90cb0628f198886ba1ae6c845e68b)
This commit is contained in:
Stefan Metzmacher 2004-07-06 01:01:39 +00:00 committed by Gerald (Jerry) Carter
parent 1828f5d506
commit 3acfc94511

View File

@ -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]) {