From: Chris Provenzano Date: Wed, 15 Nov 1995 20:29:59 +0000 (+0000) Subject: * ktest_equal.c (ktest_equal_krb5_etype_info_entry()) : X-Git-Tag: krb5-1.0-beta6~797 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1b24d5b626e4999085efdfec6b32033fb09dab07;p=krb5.git * ktest_equal.c (ktest_equal_krb5_etype_info_entry()) : Only do emecmp() if ref->length > 0 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7108 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/asn.1/ChangeLog b/src/tests/asn.1/ChangeLog index b6f9bf11a..beac2f9fd 100644 --- a/src/tests/asn.1/ChangeLog +++ b/src/tests/asn.1/ChangeLog @@ -1,3 +1,9 @@ + +Wed Nov 15 15:28:32 1995 Chris Provenzano (proven@mit.edu) + + * ktest_equal.c (ktest_equal_krb5_etype_info_entry()) : + Only do emecmp() if ref->length > 0 + Wed Nov 8 20:03:51 1995 Theodore Y. Ts'o * krb5_encode_test.c (main): In case of an error in the encoding diff --git a/src/tests/asn.1/ktest_equal.c b/src/tests/asn.1/ktest_equal.c index d6bf62201..08dff99ef 100644 --- a/src/tests/asn.1/ktest_equal.c +++ b/src/tests/asn.1/ktest_equal.c @@ -486,8 +486,9 @@ int ktest_equal_krb5_etype_info_entry(ref, var) return FALSE; if (ref->length != var->length) return FALSE; - if (memcmp(ref->salt, var->salt, ref->length) != 0) - return FALSE; + if (ref->length > 0) + if (memcmp(ref->salt, var->salt, ref->length) != 0) + return FALSE; return TRUE; }