From 1ca42958247e1ded227af862d340a5ba15434aa8 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 9 Nov 1995 05:02:13 +0000 Subject: [PATCH] Don't require val->salt to be non-zero if val->lenth is zero git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7070 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/asn1_k_encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/krb5/asn.1/asn1_k_encode.c b/src/lib/krb5/asn.1/asn1_k_encode.c index 9702f5e3d..9ef6b814b 100644 --- a/src/lib/krb5/asn.1/asn1_k_encode.c +++ b/src/lib/krb5/asn.1/asn1_k_encode.c @@ -774,7 +774,7 @@ asn1_error_code asn1_encode_etype_info_entry(buf, val, retlen) { asn1_setup(); - if(val == NULL || (val->length >= 0 && val->salt == NULL)) + if(val == NULL || (val->length > 0 && val->salt == NULL)) return ASN1_MISSING_FIELD; if (val->length >= 0) -- 2.26.2