Author: trasz Date: Wed Oct 9 13:45:07 2013 New Revision: 256193 URL: http://svnweb.freebsd.org/changeset/base/256193
Log: Fix memory overrun. Coverity CID: 1092478 Approved by: re (gjb) Sponsored by: FreeBSD Foundation Modified: head/usr.sbin/iscsid/discovery.c Modified: head/usr.sbin/iscsid/discovery.c ============================================================================== --- head/usr.sbin/iscsid/discovery.c Wed Oct 9 13:28:45 2013 (r256192) +++ head/usr.sbin/iscsid/discovery.c Wed Oct 9 13:45:07 2013 (r256193) @@ -146,7 +146,7 @@ kernel_add(const struct connection *conn 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; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"