s3-libnet: fix coverity #848 (UNINIT).
authorGünther Deschner <gd@samba.org>
Thu, 19 Feb 2009 01:35:20 +0000 (02:35 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 19 Feb 2009 12:01:59 +0000 (13:01 +0100)
Guenther

source3/libnet/libnet_samsync_keytab.c

index cdb344604d8d33f4183c8e3528fecb72d4b392ed..768406314aaaa7c2b7b00c074a0315797ec47100 100644 (file)
@@ -111,7 +111,7 @@ static NTSTATUS init_keytab(TALLOC_CTX *mem_ctx,
 {
        krb5_error_code ret = 0;
        NTSTATUS status;
-       struct libnet_keytab_context *keytab_ctx;
+       struct libnet_keytab_context *keytab_ctx = NULL;
        struct libnet_keytab_entry *entry;
        uint64_t old_sequence_num = 0;
        const char *principal = NULL;