Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a5fba22a
Commit
a5fba22a
authored
Oct 26, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snmpapi: Fix memory allocation in SnmpUtilVarBindListCpy.
parent
1f632a29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
main.c
dlls/snmpapi/main.c
+2
-4
No files found.
dlls/snmpapi/main.c
View file @
a5fba22a
...
...
@@ -431,12 +431,10 @@ INT WINAPI SnmpUtilVarBindListCpy(SnmpVarBindList *dst, SnmpVarBindList *src)
dst
->
len
=
0
;
return
SNMPAPI_NOERROR
;
}
size
=
src
->
len
*
sizeof
(
SnmpVarBind
*
);
size
=
src
->
len
*
sizeof
(
SnmpVarBind
);
if
(
!
(
dst
->
list
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
)))
{
HeapFree
(
GetProcessHeap
(),
0
,
dst
);
return
SNMPAPI_ERROR
;
}
src_entry
=
src
->
list
;
dst_entry
=
dst
->
list
;
for
(
i
=
0
;
i
<
src
->
len
;
i
++
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment