r2104: fixed typo that causes a segv
authorAndrew Tridgell <tridge@samba.org>
Mon, 30 Aug 2004 06:14:18 +0000 (06:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:58:25 +0000 (12:58 -0500)
(This used to be commit e37a4c1a63b914c46155d39c92f226c42a0393b7)

source4/auth/auth_util.c

index 06947999b3ac1277d48815c70ffb3edf050576b7..123f21406d72b221c3cad1b6843b67182c05e5d2 100644 (file)
@@ -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);