lib/krb5: re-allow data->length == 0 in krb5_pac_add_buffer()

PAC_TYPE_CLIENT_CLAIMS_INFO and PAC_TYPE_DEVICE_CLAIMS_INFO are
of zero length unless any claims are actually defined.

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Closes: #969
This commit is contained in:
Luke Howard
2022-03-03 10:12:40 +11:00
parent 89cf441e8d
commit 50fb794ef1

View File

@@ -383,7 +383,7 @@ krb5_pac_add_buffer(krb5_context context, krb5_pac p,
size_t len, offset, header_end, old_end;
uint32_t i;
assert(data->length > 0 && data->data != NULL);
assert(data->data != NULL);
len = p->pac->numbuffers;