From: Ira Weiny <[email protected]> Flag an error and do not process IP's which may appear in this file.
Signed-off-by: Ira Weiny <[email protected]> --- src/acm.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/acm.c b/src/acm.c index 651ccdd..c8a90ad 100644 --- a/src/acm.c +++ b/src/acm.c @@ -3115,12 +3115,10 @@ static int acm_assign_ep_names(struct acm_ep *ep) continue; acm_log(2, "%s", s); - if (inet_pton(AF_INET, addr, &ip_addr) > 0) { - type = ACM_ADDRESS_IP; - addr_len = 4; - } else if (inet_pton(AF_INET6, addr, &ip_addr) > 0) { - type = ACM_ADDRESS_IP6; - addr_len = ACM_MAX_ADDRESS; + if (inet_pton(AF_INET, addr, &ip_addr) > 0 + || inet_pton(AF_INET6, addr, &ip_addr) > 0) { + acm_log(0, "ERROR - IP's are no longer supported in this config file : %s", s); + continue; } else { type = ACM_ADDRESS_NAME; addr_len = strlen(addr); -- 1.7.3 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
