Only do emecmp() if ref->length > 0
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7108
dc483132-0cff-0310-8789-
dd5450dbe970
+
+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 <tytso@dcl>
* krb5_encode_test.c (main): In case of an error in the encoding
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;
}