Browse Source

Server: Fix object context pointer in the call service

Julius Pfrommer 6 years ago
parent
commit
3096e5940b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/server/ua_services_call.c

+ 2 - 2
src/server/ua_services_call.c

@@ -221,8 +221,8 @@ callWithMethodAndObject(UA_Server *server, UA_Session *session,
 
     /* Call the method */
     result->statusCode = method->method(server, &session->sessionId, session->sessionHandle,
-                                        &method->nodeId, (void*)(uintptr_t)method->context,
-                                        &object->nodeId, (void*)(uintptr_t)&object->context,
+                                        &method->nodeId, method->context,
+                                        &object->nodeId, object->context,
                                         request->inputArgumentsSize, request->inputArguments,
                                         result->outputArgumentsSize, result->outputArguments);
     /* TODO: Verify Output matches the argument definition */