aboutgitcodebugslistschat
path: root/util.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2025-02-07 01:55:08 +0100
committerStefano Brivio <sbrivio@redhat.com>2025-02-07 10:35:17 +0100
commit0f009ea598707c5978846387d716f4a612d07b36 (patch)
treee1a7ffb2a4f8221cfb0a58a562678366d31d4c40 /util.c
parenta0b7f56b3a3c220b3d8065d7cfdd83a6e3919467 (diff)
downloadpasst-0f009ea598707c5978846387d716f4a612d07b36.tar
passt-0f009ea598707c5978846387d716f4a612d07b36.tar.gz
passt-0f009ea598707c5978846387d716f4a612d07b36.tar.bz2
passt-0f009ea598707c5978846387d716f4a612d07b36.tar.lz
passt-0f009ea598707c5978846387d716f4a612d07b36.tar.xz
passt-0f009ea598707c5978846387d716f4a612d07b36.tar.zst
passt-0f009ea598707c5978846387d716f4a612d07b36.zip
passt-repair: Fix calculation of payload length from cmsg_len
There's no inverse function for CMSG_LEN(), so we need to loop over SCM_MAX_FD (253) possible input values. The previous calculation is clearly wrong, as not every int takes CMSG_LEN(sizeof(int)) in cmsg data. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions