From bd747f7238c3d8b5e05570836f7d78a9ccfc90a8 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 14 Oct 2019 08:33:03 -0500 Subject: hscript: Clear request before use --- hscript/network.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'hscript') 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; -- cgit v1.2.3-70-g09d2