Revision: 14363
          http://edk2.svn.sourceforge.net/edk2/?rev=14363&view=rev
Author:   vanjeff
Date:     2013-05-15 06:42:18 +0000 (Wed, 15 May 2013)
Log Message:
-----------
Sync patch r14354 from main trunk.
Fix bug in PXE driver: memory may be freed before use.

Revision Links:
--------------
    http://edk2.svn.sourceforge.net/edk2/?rev=14354&view=rev

Modified Paths:
--------------
    branches/UDK2010.SR1/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c

Modified: branches/UDK2010.SR1/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c
===================================================================
--- branches/UDK2010.SR1/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c  2013-05-15 
06:23:22 UTC (rev 14362)
+++ branches/UDK2010.SR1/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c  2013-05-15 
06:42:18 UTC (rev 14363)
@@ -1353,9 +1353,6 @@
            &gEfiCallerIdGuid,
            &Private->Id
            );
-    if (Private != NULL) {
-      FreePool (Private);
-    }
   }
 
   if (IpVersion == IP_VERSION_4) {
@@ -1364,6 +1361,10 @@
     PxeBcDestroyIp6Children (This, Private);
   }
 
+  if (FirstStart && Private != NULL) {
+    FreePool (Private);
+  }
+
   return Status;
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to