# Re: \[PATCH net v2 2/4\] crypto/krb5, rxrpc: Fix lack of pre-decrypt/pre-verify length checks

- From: David Howells \<dhowells@redhat.com\>
- Date: 2026-05-13 20:16:57 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/05/9004966
- Thread: https://ratatoskr.run/netdev/2026/05/9003692/t.md

```text
David Howells [ref] wrote:

> +	if (crypto_krb5_check_data_len(gk->krb5, KRB5_ENCRYPT_MODE,
> +				       len, sizeof(*hdr)) < 0)

This should be sizeof(hdr) here in patch 2 and sizeof(*hdr) in patch 3.

David

```
