summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-09-06 04:41:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:43:29 -0500
commitbf7fcdffa34fa151b9940516c300a61ca17df0b5 (patch)
treebf3abd8446b5ac379e27140acc88a9b5bc11776e
parent8b5bef1ad1ad81ce614ba422a7d4cd8c0c15106d (diff)
downloadsamba-bf7fcdffa34fa151b9940516c300a61ca17df0b5.tar.gz
samba-bf7fcdffa34fa151b9940516c300a61ca17df0b5.tar.bz2
samba-bf7fcdffa34fa151b9940516c300a61ca17df0b5.zip
r18128: Don't forget to set the ref count to 1 on a reference
counted struct. Doh ! Jeremy. (This used to be commit 8c78386e8da72108551cff72a6cc9da89264ddee)
-rw-r--r--source3/nsswitch/winbindd_cred_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cred_cache.c b/source3/nsswitch/winbindd_cred_cache.c
index ddf4de6754..90ac252dfa 100644
--- a/source3/nsswitch/winbindd_cred_cache.c
+++ b/source3/nsswitch/winbindd_cred_cache.c
@@ -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) {