projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f1b88d
)
[ICMP] Fix IcmpCloseHandle crashing on NULL handle. Patch by Tim Crawford. CORE-10707...
author
Mark Jansen
<mark.jansen@reactos.org>
Fri, 2 Sep 2016 21:47:05 +0000
(21:47 +0000)
committer
Mark Jansen
<mark.jansen@reactos.org>
Fri, 2 Sep 2016 21:47:05 +0000
(21:47 +0000)
svn path=/trunk/; revision=72538
reactos/dll/win32/iphlpapi/icmp.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/iphlpapi/icmp.c
b/reactos/dll/win32/iphlpapi/icmp.c
index
4c171ab
..
a67a867
100644
(file)
--- a/
reactos/dll/win32/iphlpapi/icmp.c
+++ b/
reactos/dll/win32/iphlpapi/icmp.c
@@
-222,7
+222,8
@@
HANDLE WINAPI IcmpCreateFile(VOID)
BOOL WINAPI IcmpCloseHandle(HANDLE IcmpHandle)
{
icmp_t* icp=(icmp_t*)IcmpHandle;
- if (IcmpHandle==INVALID_HANDLE_VALUE) {
+ // REACTOS: Added a check for NULL handle, CORE-10707
+ if (IcmpHandle==INVALID_HANDLE_VALUE || IcmpHandle==NULL) {
/* FIXME: in fact win98 seems to ignore the handle value !!! */
SetLastError(ERROR_INVALID_HANDLE);
return FALSE;