• D
    Fix unitialized data in virSocketAddrMask · ba08c593
    Daniel P. Berrange 提交于
    The virSocketAddrMask method did not initialize all fields
    in the sockaddr_in6 struct. In paticular the 'sin6_scope_id'
    field could contain random garbage, which would in turn
    affect the result of any later virSocketAddrFormat calls.
    This led to ip6tables rules in the FORWARD chain which
    matched on random garbage sin6_scope_id. Fortunately these
    were ACCEPT rules, so the impact was merely that desired
    traffic was blocked, rather than undesired traffic allowed.
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    ba08c593
sockettest.c 13.6 KB