Fixed bug in the load routine, so that the alternative salt is loaded only
authorTheodore Tso <tytso@mit.edu>
Thu, 13 Jan 1994 20:07:19 +0000 (20:07 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 13 Jan 1994 20:07:19 +0000 (20:07 +0000)
if it exists.

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

src/admin/edit/dump.c

index e487407c54b2b5aaa0fe683fa856c144e1e0c5de..3a3e6b714fb653929b43bbbabaaf4854c5ff5031 100644 (file)
@@ -315,7 +315,7 @@ void load_db(argc, argv)
                    }
                }
                entry.alt_salt_length = alt_salt_len;
-               if (salt_len) {
+               if (alt_salt_len) {
                    if (!(entry.alt_salt = (krb5_octet *)
                          malloc(alt_salt_len+1))) {
                        com_err(argv[0], errno,