[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] bug in ifconfig
From: |
RuXu W. |
Subject: |
[bug-inetutils] bug in ifconfig |
Date: |
Sun, 9 Nov 2008 14:14:19 +0800 |
diff --git a/if_index.c b/if_index.c
index c1f7de0..c854ace 100644
--- a/if_index.c
+++ b/if_index.c
@@ -114,6 +114,7 @@ if_nameindex (void)
do
{
last_len = ifc.ifc_len;
+ if(ifc.ifc_buf) free(ifc.ifc_buf);
ifc.ifc_buf = alloca (ifc.ifc_len = rq_len);
if (ifc.ifc_buf == NULL || ioctl (fd, SIOCGIFCONF, &ifc) < 0)
{
--
Best Regards!
RuXu W.
- [bug-inetutils] bug in ifconfig,
RuXu W. <=