From b1f81c3b7117aae42dbd6f8fd38ad45643b9bfee Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 21 Aug 2014 08:59:28 +0000 Subject: [PATCH] * net.cc (if_freenameindex): Don't catch a SEGV from free to fail loudly on double free. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/net.cc | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c58f054da..fe21ee26c 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2014-08-21 Corinna Vinschen + + * net.cc (if_freenameindex): Don't catch a SEGV from free to fail + loudly on double free. + 2014-08-21 Corinna Vinschen * dir.cc (rmdir): Don't skip deleting fh in the ENOTEMPTY case. diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 67c68804a..aed92fd9f 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -2380,9 +2380,6 @@ if_nameindex (void) extern "C" void if_freenameindex (struct if_nameindex *ptr) { - myfault efault; - if (efault.faulted (EFAULT)) - return; free (ptr); }