Fix memory overrun.
Coverity CID: 1092478 Approved by: re (gjb) Sponsored by: FreeBSD Foundation
This commit is contained in:
parent
5989c4cc16
commit
9e55679baf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256193
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user