We need to compare to the entry af instead of the service af or else we'll pop a nul byte into the middle of a v6 real server address. Signed-off-by: Alex Gartrell <agartrell@xxxxxx> --- ipvsadm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipvsadm.c b/ipvsadm.c index d12070e..ef19091 100644 --- a/ipvsadm.c +++ b/ipvsadm.c @@ -1629,7 +1629,7 @@ print_service_entry(ipvs_service_entry_t *se, unsigned int format) fprintf(stderr, "addrport_to_anyname fails\n"); exit(1); } - if (!(format & FMT_RULE) && (se->af != AF_INET6)) + if (!(format & FMT_RULE) && (e->af != AF_INET6)) dname[28] = '\0'; if (format & FMT_RULE) { -- 1.8.1 -- To unsubscribe from this list: send the line "unsubscribe lvs-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html