diff options
author | trasz <trasz@FreeBSD.org> | 2014-12-02 07:42:25 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-12-02 07:42:25 +0000 |
commit | 84e2f9fb805f1fee7bed4b55708ba595ebf34d87 (patch) | |
tree | adf6781f0515bfa06e29b2340de4a13615a61523 /usr.sbin | |
parent | af3ff681e327cc408e305a019b63b5777be02253 (diff) | |
download | FreeBSD-src-84e2f9fb805f1fee7bed4b55708ba595ebf34d87.zip FreeBSD-src-84e2f9fb805f1fee7bed4b55708ba595ebf34d87.tar.gz |
Fix null pointer dereference.
MFC after: 2 weeks
Coverity CID: 1256497
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ctld/ctld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c index 2eca2d2..0e99be2 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. * |