Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
924389d9
Commit
924389d9
authored
Nov 13, 2013
by
Jan Synacek
Committed by
Quanah Gibson-Mount
Apr 01, 2014
Browse files
ITS#7723 fix reference counting
parent
e725f211
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/librewrite/session.c
View file @
924389d9
...
@@ -161,6 +161,7 @@ rewrite_session_find(
...
@@ -161,6 +161,7 @@ rewrite_session_find(
#ifdef USE_REWRITE_LDAP_PVT_THREADS
#ifdef USE_REWRITE_LDAP_PVT_THREADS
if
(
session
)
{
if
(
session
)
{
ldap_pvt_thread_mutex_lock
(
&
session
->
ls_mutex
);
ldap_pvt_thread_mutex_lock
(
&
session
->
ls_mutex
);
session
->
ls_count
++
;
}
}
ldap_pvt_thread_rdwr_runlock
(
&
info
->
li_cookies_mutex
);
ldap_pvt_thread_rdwr_runlock
(
&
info
->
li_cookies_mutex
);
#endif
/* USE_REWRITE_LDAP_PVT_THREADS */
#endif
/* USE_REWRITE_LDAP_PVT_THREADS */
...
@@ -178,6 +179,7 @@ rewrite_session_return(
...
@@ -178,6 +179,7 @@ rewrite_session_return(
)
)
{
{
assert
(
session
!=
NULL
);
assert
(
session
!=
NULL
);
session
->
ls_count
--
;
ldap_pvt_thread_mutex_unlock
(
&
session
->
ls_mutex
);
ldap_pvt_thread_mutex_unlock
(
&
session
->
ls_mutex
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment