Branch: refs/heads/careful-sockaddrs Home: https://github.com/kronosnet/kronosnet Commit: 833c39e998475bc3c56993cb77c89845f9c66e98 https://github.com/kronosnet/kronosnet/commit/833c39e998475bc3c56993cb77c898... Author: Christine Caulfield ccaulfie@redhat.com Date: 2021-06-24 (Thu, 24 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.