Skip to content

Commit 91852a2

Browse files
committed
emsmdb: fix deref through wrong type in exchange_emsmdb_dispatch
exch/emsmdb/main.cpp:285:14: runtime error: downcast of address which does not point to an object of type 'ECDOASYNCCONNECTEX_IN' note: object is of type 'ECDODISCONNECT_IN' 1a 00 00 00 90 1f 80 99 a4 7f 00 00 02 00 00 00 6d 15 a2 59 9e ac 8b 4b 85 d2 fc a7 87 3b 1c e1 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'ECDODISCONNECT_IN' Fixes: gromox-2.2-125-g64b2fb1e4
1 parent abe6b02 commit 91852a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exch/emsmdb/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ static int exchange_emsmdb_dispatch(unsigned int opnum, const GUID *pobject,
280280
{
281281
switch (opnum) {
282282
case ecDoDisconnect: {
283-
auto in = static_cast<const ECDOASYNCCONNECTEX_IN *>(pin);
283+
auto in = static_cast<const ECDODISCONNECT_IN *>(pin);
284284
auto out = ndr_stack_anew<ECDODISCONNECT_OUT>(NDR_STACK_OUT);
285285
if (out == nullptr)
286286
return DISPATCH_FAIL;

0 commit comments

Comments
 (0)