[ros-diffs] [weiden] 17208: don't dereference a NULL pointer

weiden at svn.reactos.com weiden at svn.reactos.com
Mon Aug 8 17:49:51 CEST 2005


don't dereference a NULL pointer
Modified: trunk/reactos/ntoskrnl/ob/object.c
  _____  

Modified: trunk/reactos/ntoskrnl/ob/object.c
--- trunk/reactos/ntoskrnl/ob/object.c	2005-08-08 15:46:41 UTC (rev
17207)
+++ trunk/reactos/ntoskrnl/ob/object.c	2005-08-08 15:49:37 UTC (rev
17208)
@@ -347,7 +347,7 @@

 
     if (!NT_SUCCESS(Status))
     {
-        if (ObjectName->Buffer)
+        if (ObjectName != NULL && ObjectName->Buffer)
         {
             ExFreePool(ObjectName->Buffer);
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050808/868bea49/attachment.html


More information about the Ros-diffs mailing list