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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user