HomeClusterLabs Projects

Sanitise sockaddr_storage structs coming in the API

Description

Sanitise sockaddr_storage structs coming in the API

Before we used to copy the whole sockaddr_storage from
the API into our structs. This meant that any junk left
at the end by the caller got into them and could
cause trouble with some comparisons.

This patch zeros out the extra bits of the sockaddr_storage
that are not valid.

Details

Provenance
chrissie-cAuthored on Jun 24 2021, 9:38 AM
Parents
rK4e5bce17775c: Merge pull request #338 from kronosnet/rust-bindings
Branches
Unknown
Tags
Unknown

Event Timeline