1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

hdb-ldb: check the SUPPLEMENTAL_CREDENTIALS_SIGNATURE

metze
(This used to be commit 7219740ef4)
This commit is contained in:
Stefan Metzmacher 2008-07-23 13:41:51 +02:00
parent fbea02accf
commit fa40b0709a

View File

@ -221,6 +221,12 @@ static krb5_error_code LDB_message2entry_keys(krb5_context context,
goto out;
}
if (scb.sub.signature != SUPPLEMENTAL_CREDENTIALS_SIGNATURE) {
NDR_PRINT_DEBUG(supplementalCredentialsBlob, &scb);
ret = EINVAL;
goto out;
}
for (i=0; i < scb.sub.num_packages; i++) {
if (scb.sub.packages[i].unknown1 != 0x00000001) {
continue;