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
782efb57
Commit
782efb57
authored
May 07, 2009
by
Juan Lang
Committed by
Alexandre Julliard
May 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetmib1: Return errors from SnmpExtensionQuery.
parent
1c547cdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
main.c
dlls/inetmib1/main.c
+6
-4
No files found.
dlls/inetmib1/main.c
View file @
782efb57
...
...
@@ -1279,6 +1279,7 @@ BOOL WINAPI SnmpExtensionQuery(BYTE bPduType, SnmpVarBindList *pVarBindList,
AsnObjectIdentifier
mib2oid
=
DEFINE_OID
(
mib2
);
AsnInteger32
error
=
SNMP_ERRORSTATUS_NOERROR
,
errorIndex
=
0
;
UINT
i
;
BOOL
ret
=
TRUE
;
TRACE
(
"(0x%02x, %p, %p, %p)
\n
"
,
bPduType
,
pVarBindList
,
pErrorStatus
,
pErrorIndex
);
...
...
@@ -1300,7 +1301,7 @@ BOOL WINAPI SnmpExtensionQuery(BYTE bPduType, SnmpVarBindList *pVarBindList,
impl
=
findSupportedQuery
(
pVarBindList
->
list
[
i
].
name
.
ids
,
len
,
&
matchingIndex
);
if
(
impl
&&
impl
->
query
)
impl
->
query
(
bPduType
,
&
pVarBindList
->
list
[
i
],
&
error
);
ret
=
impl
->
query
(
bPduType
,
&
pVarBindList
->
list
[
i
],
&
error
);
else
error
=
SNMP_ERRORSTATUS_NOSUCHNAME
;
if
(
error
==
SNMP_ERRORSTATUS_NOSUCHNAME
&&
...
...
@@ -1317,7 +1318,8 @@ BOOL WINAPI SnmpExtensionQuery(BYTE bPduType, SnmpVarBindList *pVarBindList,
error
=
SNMP_ERRORSTATUS_NOERROR
;
impl
=
&
supportedIDs
[
matchingIndex
];
if
(
impl
->
query
)
impl
->
query
(
bPduType
,
&
pVarBindList
->
list
[
i
],
&
error
);
ret
=
impl
->
query
(
bPduType
,
&
pVarBindList
->
list
[
i
],
&
error
);
else
error
=
SNMP_ERRORSTATUS_NOSUCHNAME
;
}
...
...
@@ -1327,7 +1329,7 @@ BOOL WINAPI SnmpExtensionQuery(BYTE bPduType, SnmpVarBindList *pVarBindList,
if
(
error
==
SNMP_ERRORSTATUS_NOSUCHNAME
)
{
SnmpUtilOidFree
(
&
pVarBindList
->
list
[
i
].
name
);
SnmpUtilOidCpy
(
&
pVarBindList
->
list
[
i
].
name
,
ret
=
SnmpUtilOidCpy
(
&
pVarBindList
->
list
[
i
].
name
,
&
supportedIDs
[
matchingIndex
-
1
].
name
);
pVarBindList
->
list
[
i
].
name
.
ids
[
pVarBindList
->
list
[
i
].
name
.
idLength
-
1
]
+=
1
;
...
...
@@ -1339,7 +1341,7 @@ BOOL WINAPI SnmpExtensionQuery(BYTE bPduType, SnmpVarBindList *pVarBindList,
}
*
pErrorStatus
=
error
;
*
pErrorIndex
=
errorIndex
;
return
TRUE
;
return
ret
;
}
/*****************************************************************************
...
...
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