Changed to clear the kdb5_db_entry before assigning it. (To keep
authorTheodore Tso <tytso@mit.edu>
Thu, 24 Sep 1992 23:04:31 +0000 (23:04 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 24 Sep 1992 23:04:31 +0000 (23:04 +0000)
the alt_key structure clear since we're not filling it in yet.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2381 dc483132-0cff-0310-8789-dd5450dbe970

src/admin/convert/kdb5_convert.c

index 21bc50e7956e22d6fd66c5d50404b4307a052106..2d09f0855c179489b531d4884d58fa504df912b1 100644 (file)
@@ -499,6 +499,7 @@ Principal *princ;
            printf("\nignoring '%s.%s' ...", princ->name, princ->instance);
        return 0;
     }
+    memset((char *) &entry, 0, sizeof(entry));
     if (retval = krb5_425_conv_principal(princ->name, princ->instance,
                                         realm, &entry.principal))
        return retval;
@@ -579,6 +580,7 @@ struct realm_info *pblock;
     krb5_keyblock *rkey;
     int nentries = 1;
 
+    memset((char *) &entry, 0, sizeof(entry));
     entry.principal = princ;
     entry.kvno = 0;
     entry.max_life = pblock->max_life;