summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-06-20 07:26:51 +0000
committerBill Nottingham <notting@redhat.com>2000-06-20 07:26:51 +0000
commita2ab5eae038c97e15376cbd43112e30a27c89ffa (patch)
tree3c6da304416d4358b24ce479d7c8cfffa573ac83 /isys
parentc68a2839e0ab4d37696a6ab59ba74ff519e191d3 (diff)
downloadanaconda-a2ab5eae038c97e15376cbd43112e30a27c89ffa.tar.gz
anaconda-a2ab5eae038c97e15376cbd43112e30a27c89ffa.tar.xz
anaconda-a2ab5eae038c97e15376cbd43112e30a27c89ffa.zip
zero out device before use
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/isys/isys.c b/isys/isys.c
index 8b35e93f8..f417325a0 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -768,6 +768,7 @@ static PyObject * doConfigNetDevice(PyObject * s, PyObject * args) {
if (!PyArg_ParseTuple(args, "ssss", &dev, &ip, &netmask, &gateway))
return NULL;
+ memset(device,'\0',sizeof(struct pumpNetIntf));
strncpy(device.device, dev, sizeof(device.device) - 1);
device.ip.s_addr = inet_addr(ip);
device.netmask.s_addr = inet_addr(netmask);