ipconfig: Remove ipconfig from ipconfig_list
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Fri, 25 Nov 2011 15:05:37 +0000 (17:05 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 28 Nov 2011 16:55:13 +0000 (17:55 +0100)
commitee29e7046e205e1e2eb3bab6f608c5cac8a6bf3a
tree0d12e6f293da0d75a1908fe028449d22bb8fac1d
parentd436afd59968222b29e6fad922c2f0941d2a79f3
ipconfig: Remove ipconfig from ipconfig_list

It is possible that ipdevice does not contain ipconfig for
some reason. If that happens, then ipconfig is not removed
from ipconfig_list which will then escalate into freed memory
access when interface is taken down.
The problem was seen with valgrind when tethering was enabled
and then disabled for wifi.
src/ipconfig.c