summaryrefslogtreecommitdiff
path: root/hscript
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-14 08:33:03 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-14 08:33:03 -0500
commitbd747f7238c3d8b5e05570836f7d78a9ccfc90a8 (patch)
tree5f7935e43ebc82bbeaa33976dd602a154dc3fb59 /hscript
parent394f68d137a6c5438ccc790ec3a34cd688397a41 (diff)
downloadhorizon-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.cc1
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;