From: Arran Cudbard-Bell Date: Fri, 11 Sep 2015 12:58:26 +0000 (+0100) Subject: Should be AF_UNSPEC, because we don't *know* what type of client IP we'll be parsing X-Git-Tag: release_3_0_10~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c3cf7ae13176adb9ad5a46fa9c22f2546ad8a95;p=thirdparty%2Ffreeradius-server.git Should be AF_UNSPEC, because we don't *know* what type of client IP we'll be parsing Length should be -1. --- diff --git a/src/main/client.c b/src/main/client.c index 832f12a2da1..00229d092f3 100644 --- a/src/main/client.c +++ b/src/main/client.c @@ -950,7 +950,7 @@ RADCLIENT *client_afrom_cs(TALLOC_CTX *ctx, CONF_SECTION *cs, bool in_server, bo goto error; } #endif - if (fr_pton(&c->ipaddr, name2, 0, true, true) < 0) { + if (fr_pton(&c->ipaddr, name2, -1, AF_UNSPEC, true) < 0) { cf_log_err_cs(cs, "Failed parsing client name \"%s\" as ip address or hostname: %s", name2, fr_strerror()); goto error;