diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2025-03-06 12:18:59 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2025-03-13 10:23:29 +0000 |
commit | 1219a3f40db386aaa10edfea27d9cc73fdea3935 (patch) | |
tree | ab24a2ca34c933e727e8027353ee1fb451920a0f /lib/libc/sys/flock.2 | |
parent | f1929835f76d587804c417f19188f41b77e8e7c6 (diff) |
pfkey2: use correct value for a key lengthstable/13
The length of key data is specified via sadb_key_bits field.
Use specified size for buffer allocation and key copying.
Also add a check that the value of sadb_key_bits is not zero,
as explicitly required in RFC 2367.
PR: 241010
Submitted by: jean-francois.hren at stormshield eu
(cherry picked from commit 04207850a9b988d3c04e904cb5783f33da7fe184)
Diffstat (limited to 'lib/libc/sys/flock.2')
0 files changed, 0 insertions, 0 deletions