Skip to content

Commit 9879c19

Browse files
committed
adminSession needn't AccessControl/closeSession
1 parent eef3fc5 commit 9879c19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/ua_session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void UA_Session_clear(UA_Session *session, UA_Server* server) {
3838
#endif
3939

4040
/* Callback into userland access control */
41-
if(server->config.accessControl.closeSession) {
41+
if(server->config.accessControl.closeSession && &server->adminSession != session) {
4242
server->config.accessControl.
4343
closeSession(server, &server->config.accessControl,
4444
&session->sessionId, session->sessionHandle);

0 commit comments

Comments
 (0)