Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
3aca0119
Commit
3aca0119
authored
19 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
fix previous commit
parent
fde95747
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/librewrite/session.c
+11
-6
11 additions, 6 deletions
libraries/librewrite/session.c
with
11 additions
and
6 deletions
libraries/librewrite/session.c
+
11
−
6
View file @
3aca0119
...
...
@@ -303,7 +303,7 @@ rewrite_session_var_get(
}
static
void
rewrite_session_
free
(
void
*
v_session
)
rewrite_session_
clean
(
void
*
v_session
)
{
struct
rewrite_session
*
session
=
(
struct
rewrite_session
*
)
v_session
;
...
...
@@ -319,8 +319,13 @@ rewrite_session_free( void *v_session )
ldap_pvt_thread_mutex_unlock
(
&
session
->
ls_mutex
);
ldap_pvt_thread_mutex_destroy
(
&
session
->
ls_mutex
);
#endif
/* USE_REWRITE_LDAP_PVT_THREADS */
}
free
(
session
);
static
void
rewrite_session_free
(
void
*
v_session
)
{
rewrite_session_clean
(
v_session
);
free
(
v_session
);
}
/*
...
...
@@ -332,13 +337,11 @@ rewrite_session_delete(
const
void
*
cookie
)
{
struct
rewrite_session
*
session
,
tmp
;
struct
rewrite_session
*
session
,
tmp
=
{
0
}
;
assert
(
info
!=
NULL
);
assert
(
cookie
!=
NULL
);
tmp
.
ls_cookie
=
(
void
*
)
cookie
;
session
=
rewrite_session_find
(
info
,
cookie
);
if
(
session
==
NULL
)
{
...
...
@@ -350,7 +353,7 @@ rewrite_session_delete(
return
REWRITE_SUCCESS
;
}
rewrite_session_
free
(
session
);
rewrite_session_
clean
(
session
);
#ifdef USE_REWRITE_LDAP_PVT_THREADS
ldap_pvt_thread_rdwr_wlock
(
&
info
->
li_cookies_mutex
);
...
...
@@ -362,7 +365,9 @@ rewrite_session_delete(
/*
* There is nothing to delete in the return value
*/
tmp
.
ls_cookie
=
(
void
*
)
cookie
;
avl_delete
(
&
info
->
li_cookies
,
(
caddr_t
)
&
tmp
,
rewrite_cookie_cmp
);
free
(
session
);
#ifdef USE_REWRITE_LDAP_PVT_THREADS
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment