diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c index 2eca2d2aac0..0e99be2d3de 100644 --- a/usr.sbin/ctld/ctld.c +++ b/usr.sbin/ctld/ctld.c @@ -1825,7 +1825,7 @@ conf_apply(struct conf *oldconf, struct conf *newconf) error = kernel_port_add(newtarg); if (error != 0) { log_warnx("failed to add target %s", - oldtarg->t_name); + newtarg->t_name); /* * XXX: Uncomment after fixing the root cause. *