Explorar o código

fix last commit

Julius Pfrommer %!s(int64=11) %!d(string=hai) anos
pai
achega
e4d4ad47b5
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 2 2
      src/ua_connection.h
  2. 1 1
      src/ua_services_session.c

+ 2 - 2
src/ua_connection.h

@@ -55,10 +55,10 @@ typedef struct T_UA_TL_connection
 	struct T_SL_Channel* secureChannel;
 } UA_TL_connection;
 
-struct UA_Session {
+typedef struct UA_Session_T {
 	UA_Int32 dummy;
 	UA_Application *application;
-}
+} UA_Session;
 
 /* Secure Layer Channel */
 typedef struct T_SL_Channel

+ 1 - 1
src/ua_services_session.c

@@ -23,7 +23,7 @@ UA_Int32 service_activatesession(UA_SL_Channel *channel, UA_ActivateSessionReque
 
 UA_Int32 service_closesession(UA_SL_Channel *channel, UA_CloseSessionRequest *request, UA_CloseSessionResponse *response) {
 
-	channel->application = UA_NULL;
+	channel->session = UA_NULL;
 	// FIXME: set response
 	
 	return UA_SUCCESS;