summaryrefslogtreecommitdiff
path: root/source4/auth/auth_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth/auth_util.c')
-rw-r--r--source4/auth/auth_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/auth_util.c b/source4/auth/auth_util.c
index 06947999b3..123f21406d 100644
--- a/source4/auth/auth_util.c
+++ b/source4/auth/auth_util.c
@@ -619,7 +619,7 @@ NTSTATUS make_session_info(struct auth_serversupplied_info *server_info,
void free_session_info(struct auth_session_info **session_info)
{
DEBUG(5,("attempting to free a session_info structure\n"));
- if (!*session_info) {
+ if (*session_info) {
(*session_info)->refcount--;
if ((*session_info)->refcount <= 0) {
talloc_destroy((*session_info)->mem_ctx);