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
fabbioneCommitted on Jun 24 2021, 11:27 PM
Parents
rKfbaf9bf967b3: Update copyright around
Branches
Unknown
Tags
Unknown

Event Timeline