Fix possible uninitialized variable use.
[tprouty/samba.git] / source / nsswitch / winbindd_cred_cache.c
index 2c9572d7f86cfabdb669030045f2e843f77d7080..e47858b628c2fe4d8dd08776442ed27f5d65c5b7 100644 (file)
@@ -111,8 +111,7 @@ static void krb5_ticket_refresh_handler(struct event_context *event_ctx,
                                                  entry->ccname,
                                                  False, /* no PAC required anymore */
                                                  True,
-                                                 WINBINDD_PAM_AUTH_KRB5_RENEW_TIME,
-                                                 NULL);
+                                                 WINBINDD_PAM_AUTH_KRB5_RENEW_TIME);
                gain_root_privilege();
 
                if (ret) {
@@ -225,8 +224,7 @@ static void krb5_ticket_gain_handler(struct event_context *event_ctx,
                                                entry->ccname,
                                                False, /* no PAC required anymore */
                                                True,
-                                               WINBINDD_PAM_AUTH_KRB5_RENEW_TIME,
-                                               NULL);
+                                               WINBINDD_PAM_AUTH_KRB5_RENEW_TIME);
                gain_root_privilege();
 
                if (ret) {
@@ -428,7 +426,7 @@ NTSTATUS add_ccache_to_list(const char *princ_name,
 NTSTATUS remove_ccache(const char *username)
 {
        struct WINBINDD_CCACHE_ENTRY *entry = get_ccache_by_username(username);
-       NTSTATUS status;
+       NTSTATUS status = NT_STATUS_OK;
 #ifdef HAVE_KRB5
        krb5_error_code ret;
 #endif