r18128: Don't forget to set the ref count to 1 on a reference
authorJeremy Allison <jra@samba.org>
Wed, 6 Sep 2006 04:41:43 +0000 (04:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:43:29 +0000 (11:43 -0500)
counted struct. Doh !
Jeremy.

source/nsswitch/winbindd_cred_cache.c

index ddf4de6754c8e236958dcb1b6a18fc811607a813..90ac252dfa8d6a6a036484232883be59ff2c827f 100644 (file)
@@ -247,6 +247,7 @@ NTSTATUS add_ccache_to_list(const char *princ_name,
        entry->create_time = create_time;
        entry->renew_until = renew_until;
        entry->uid = uid;
+       entry->ref_count = 1;
 
        if (schedule_refresh_event && renew_until > 0) {