diff options
author | Toomas Soome <tsoome@me.com> | 2022-11-20 01:00:57 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2022-12-05 19:35:55 +0200 |
commit | c8ed50c6d60fbb337f556eadef95cef18c28afa5 (patch) | |
tree | c284efa8b8d42be1825ee014506e68e6e46b7732 /usr | |
parent | 6fc1cd8d0240203842ead4a592ce7a8c4c3d65eb (diff) | |
download | illumos-gate-c8ed50c6d60fbb337f556eadef95cef18c28afa5.tar.gz |
15193 libdladm: sizeof-pointer-memaccess
Reviewed by: Jason King <jason.brian.king+illumos@gmail.com>
Reviewed by: Yuri Pankov <yuri@aetern.org>
Reviewed by: Marco van Wieringen <mvw@planets.elm.net>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/lib/libdladm/common/libdlsim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libdladm/common/libdlsim.c b/usr/src/lib/libdladm/common/libdlsim.c index 7b8c515875..c4d52abe60 100644 --- a/usr/src/lib/libdladm/common/libdlsim.c +++ b/usr/src/lib/libdladm/common/libdlsim.c @@ -386,7 +386,7 @@ dladm_simnet_info(dladm_handle_t handle, datalink_id_t simnet_id, if (class != DATALINK_CLASS_SIMNET) return (DLADM_STATUS_BADARG); - bzero(attrp, sizeof (attrp)); + bzero(attrp, sizeof (*attrp)); attrp->sna_link_id = simnet_id; if (flags & DLADM_OPT_ACTIVE) { |