Branch: refs/heads/stable1-proposed Home: https://github.com/kronosnet/kronosnet Commit: f6bdeba12a038253cfb3a93e0c1f7fa42e35f939 https://github.com/kronosnet/kronosnet/commit/f6bdeba12a038253cfb3a93e0c1f7f... 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.