non zero, indicate with error before exiting.
* trval.c (do_cons): Initialize return value to zero in case of
zero length data. (instead of random stack value).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6596
dc483132-0cff-0310-8789-
dd5450dbe970
+Sat Aug 26 12:40:57 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * krb5_encode_test.c (encoder_print_results): If trval2 returns
+ non zero, indicate with error before exiting.
+
+ * trval.c (do_cons): Initialize return value to zero in case of
+ zero length data. (instead of random stack value).
+
+
Fri Aug 25 21:50:37 1995 Theodore Y. Ts'o <tytso@dcl>
* krb5_encode_test.c (main): Add tests for
code->length, rlen);
exit(1);
}
- if (r != 0)
+ if (r != 0) {
+ printf("Error: Return from trval2 is %d.\n", r);
exit(1);
+ }
} else {
retval = asn1_krb5_data_unparse(code,&(code_string));
if(retval) {
int l, eid, elen, xlen, r, rlen2;
int rlen_ext = 0;
+
if (len < 2) {
fprintf(fp, "missing id and length octets (%d)\n", len);
return(NOTOK);
int *rlen;
{
int n;
- int r;
+ int r = 0;
int rlen2;
int rlent;