ソースを参照

fix last commit

Julius Pfrommer 11 年 前
コミット
e4d4ad47b5
共有2 個のファイルを変更した3 個の追加3 個の削除を含む
  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;