diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-14 08:33:03 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-14 08:33:03 -0500 |
commit | bd747f7238c3d8b5e05570836f7d78a9ccfc90a8 (patch) | |
tree | 5f7935e43ebc82bbeaa33976dd602a154dc3fb59 /hscript | |
parent | 394f68d137a6c5438ccc790ec3a34cd688397a41 (diff) | |
download | horizon-bd747f7238c3d8b5e05570836f7d78a9ccfc90a8.tar.gz horizon-bd747f7238c3d8b5e05570836f7d78a9ccfc90a8.tar.bz2 horizon-bd747f7238c3d8b5e05570836f7d78a9ccfc90a8.tar.xz horizon-bd747f7238c3d8b5e05570836f7d78a9ccfc90a8.zip |
hscript: Clear request before use
Diffstat (limited to 'hscript')
-rw-r--r-- | hscript/network.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hscript/network.cc b/hscript/network.cc index 62881f9..e02e5df 100644 --- a/hscript/network.cc +++ b/hscript/network.cc @@ -319,6 +319,7 @@ bool NetSSID::validate(ScriptOptions options) const { "netssid: can't open socket", ::strerror(errno)); return false; } + memset(&request, 0, sizeof(request)); memcpy(&request.ifr_ifrn.ifrn_name, this->_iface.c_str(), this->_iface.size()); errno = 0; |