summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2013-10-09 13:45:07 +0000
committertrasz <trasz@FreeBSD.org>2013-10-09 13:45:07 +0000
commit751ffd6b5a8e3cded53abe729893555f2824b11d (patch)
treeb6985d1c4fb6e04aa8b2cb973c830b337dc234eb /usr.sbin
parent33f6245f1b5d4f40ef73a76c2f8b49423aaa1de9 (diff)
downloadFreeBSD-src-751ffd6b5a8e3cded53abe729893555f2824b11d.zip
FreeBSD-src-751ffd6b5a8e3cded53abe729893555f2824b11d.tar.gz
Fix memory overrun.
Coverity CID: 1092478 Approved by: re (gjb) Sponsored by: FreeBSD Foundation
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/iscsid/discovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/iscsid/discovery.c b/usr.sbin/iscsid/discovery.c
index 639b71a..016f444 100644
--- a/usr.sbin/iscsid/discovery.c
+++ b/usr.sbin/iscsid/discovery.c
@@ -146,7 +146,7 @@ kernel_add(const struct connection *conn, const char *target)
int error;
memset(&isa, 0, sizeof(isa));
- memcpy(&isa.isa_conf, &conn->conn_conf, sizeof(isa));
+ memcpy(&isa.isa_conf, &conn->conn_conf, sizeof(isa.isa_conf));
strlcpy(isa.isa_conf.isc_target, target,
sizeof(isa.isa_conf.isc_target));
isa.isa_conf.isc_discovery = 0;
OpenPOWER on IntegriCloud