libathemecore: match_cidr() could use some assertions.