Permalink
Browse files

Fix memory overrun.

Coverity CID:	1092478
Approved by:	re (gjb)
Sponsored by:	FreeBSD Foundation
  • Loading branch information...
1 parent 33f6245 commit 751ffd6b5a8e3cded53abe729893555f2824b11d @trasz trasz committed Oct 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 751ffd6

Please sign in to comment.