rem: lock_get( ses->mutex );
add: lock_release( ses->mutex ); LOG(L_INFO,"INFO:AAAEndSession: destroing session\n");
context: AAAReturnCode AAAEndSession( AAASessionId *sessionId ){	struct session *ses;	ses = sId2session( sessionId );	if (ses->peer_identity==AAA_SERVER_STATEFULL) {		/* server is statefull -> maybe I have to send a STR */		// TO DO !!!!!!!!!	} else {		/* for stateless servers -> just remove it */		remove_cell_from_htable( ses_mgr.ses_table, &(ses->linker) );		lock_get( ses->mutex );		if (ses->state==AAA_PENDING_STATE) {			LOG(L_INFO,"INFO:AAAEndSession: removing a session that waits"				" for an answer -> destroy postponded\n");			ses->state = AAA_TO_DESTROY_STATE;			lock_release( ses->mutex );		} else {			lock_get( ses->mutex );			destroy_session( ses );		}	}	return AAA_ERR_SUCCESS;}