Set default trust kvno to -1
authorAndrew Bartlett <abartlet@samba.org>
Fri, 3 Oct 2008 23:36:49 +0000 (16:36 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 6 Oct 2008 21:28:27 +0000 (14:28 -0700)
source4/kdc/hdb-samba4.c

index 5b7f55822e5bb6f52ebed889f6978abe8dff413a..51f464cd096c75838a53b2926373a2d748fa9bda 100644 (file)
@@ -717,7 +717,6 @@ static krb5_error_code LDB_trust_message2entry(krb5_context context, HDB *db,
 
        enum ndr_err_code ndr_err;
        int i, ret, trust_direction_flags;
-       uint32_t kvno;
 
        private = talloc(mem_ctx, struct hdb_ldb_private);
        if (!private) {
@@ -765,6 +764,7 @@ static krb5_error_code LDB_trust_message2entry(krb5_context context, HDB *db,
                goto out;
        }
 
+       entry_ex->entry.kvno = -1;
        for (i=0; i < password_blob.count; i++) {
                if (password_blob.current->array[i].AuthType == TRUST_AUTH_TYPE_VERSION) {
                        entry_ex->entry.kvno = password_blob.current->array[i].AuthInfo.version.version;