summaryrefslogtreecommitdiff
path: root/hscript/network.cc
diff options
context:
space:
mode:
Diffstat (limited to 'hscript/network.cc')
-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;