From: Jeremy Allison Date: Wed, 6 Sep 2006 04:41:43 +0000 (+0000) Subject: r18128: Don't forget to set the ref count to 1 on a reference X-Git-Tag: samba-4.0.0alpha6~801^2~7714 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf7fcdffa34fa151b9940516c300a61ca17df0b5;p=thirdparty%2Fsamba.git r18128: Don't forget to set the ref count to 1 on a reference counted struct. Doh ! Jeremy. (This used to be commit 8c78386e8da72108551cff72a6cc9da89264ddee) --- diff --git a/source3/nsswitch/winbindd_cred_cache.c b/source3/nsswitch/winbindd_cred_cache.c index ddf4de6754c..90ac252dfa8 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) {