diff options
author | Theodore Tso <tytso@mit.edu> | 1995-11-09 01:05:57 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1995-11-09 01:05:57 +0000 |
commit | 7d2b2444f213d9f9b7560bad49bafff4fc46a526 (patch) | |
tree | 67a2fde74795672d6e83bde28aa5f4d15a920e0a /src/tests/asn.1/ktest.c | |
parent | e8d6f2d6df42a036824d1c93c98a0d6bbbb8d8c7 (diff) | |
download | krb5-7d2b2444f213d9f9b7560bad49bafff4fc46a526.tar.gz krb5-7d2b2444f213d9f9b7560bad49bafff4fc46a526.tar.xz krb5-7d2b2444f213d9f9b7560bad49bafff4fc46a526.zip |
* krb5_encode_test.c (main): In case of an error in the encoding
routines, exit. Otherwise, calling the print routines will often
lead to a coredump.
* ktest.c (ktest_make_sample_etype_info): Set etype.length to -1 to
mean that the optional salt string is missing. (This is change in
the convention used by the ASN.1 encoder and decoder for this ASN.1
structure.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7068 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests/asn.1/ktest.c')
-rw-r--r-- | src/tests/asn.1/ktest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/asn.1/ktest.c b/src/tests/asn.1/ktest.c index a995d1d99..5700760af 100644 --- a/src/tests/asn.1/ktest.c +++ b/src/tests/asn.1/ktest.c @@ -680,7 +680,7 @@ krb5_error_code ktest_make_sample_etype_info(p) info[i]->magic = KV5M_ETYPE_INFO_ENTRY; } free(info[1]->salt); - info[1]->length = 0; + info[1]->length = -1; info[1]->salt = 0; *p = info; return 0; |