[Swan-commit] Changes to ref refs/heads/master

Andrew Cagney cagney at vault.libreswan.fi
Mon Aug 19 15:33:29 UTC 2019


New commits:
commit b408893798b888abb994eeea879c102b3ab6a522
Author: Andrew Cagney <cagney at gnu.org>
Date:   Sat Aug 17 09:52:43 2019 -0400

    ip: use address_is_specified() for detecting valid non-any addresses
    
    Replace code snippets such as:
    
       address_type(a) == NULL || addrisany(a)
       addrbytesptr_read(a,NULL) == 0 || isanyaddr(a)
       address_type(a) != NULL && !addrisany(a)
       !addrisany(a)
    
    where the intent is clearly test for a specified address (remember,
    addrisany() returns true for "invalid" addresses).



More information about the Swan-commit mailing list