projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[WS2_32] Add some parameters check for getsockname. Use value size for size check...
[reactos.git]
/
reactos
/
dll
/
win32
/
ws2_32
/
src
/
socklife.c
diff --git
a/reactos/dll/win32/ws2_32/src/socklife.c
b/reactos/dll/win32/ws2_32/src/socklife.c
index
86a12c6
..
50f559f
100644
(file)
--- a/
reactos/dll/win32/ws2_32/src/socklife.c
+++ b/
reactos/dll/win32/ws2_32/src/socklife.c
@@
-48,7
+48,7
@@
bind(IN SOCKET s,
/* Get the Socket Context */
if ((Socket = WsSockGetSocket(s)))
{
- if (name && (namelen >= sizeof(
struct sockaddr
)))
+ if (name && (namelen >= sizeof(
*name
)))
{
/* Make the call */
Status = Socket->Provider->Service.lpWSPBind(s,