Branch: refs/heads/stable1-proposed Home: https://github.com/kronosnet/kronosnet Commit: 96564def0c0cfbb807caf60d2196b164011b2d52 https://github.com/kronosnet/kronosnet/commit/96564def0c0cfbb807caf60d2196b1... Author: Christine Caulfield ccaulfie@redhat.com Date: 2021-06-25 (Fri, 25 Jun 2021)
Changed paths: M libknet/links.c M libknet/links_acl_ip.c M libknet/netutils.c M libknet/netutils.h
Log Message: ----------- 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.