summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/asn.1/asn1buf.c
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1999-07-01 00:38:28 +0000
committerTom Yu <tlyu@mit.edu>1999-07-01 00:38:28 +0000
commit5ab8973a1cc1d09ec56687b2faeaa4ceaf672da8 (patch)
tree07a2ed9143dc933c46d6ea6df34cbcba8e515c95 /src/lib/krb5/asn.1/asn1buf.c
parent3b6362aff28138addf5dbf156a64a03a6f8f64f8 (diff)
downloadkrb5-5ab8973a1cc1d09ec56687b2faeaa4ceaf672da8.tar.gz
krb5-5ab8973a1cc1d09ec56687b2faeaa4ceaf672da8.tar.xz
krb5-5ab8973a1cc1d09ec56687b2faeaa4ceaf672da8.zip
* asn1buf.c (asn1buf_sync): Interim fix for DCE compat problem
with indefinite length encodings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11540 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/asn.1/asn1buf.c')
-rw-r--r--src/lib/krb5/asn.1/asn1buf.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/krb5/asn.1/asn1buf.c b/src/lib/krb5/asn.1/asn1buf.c
index 52ac387d5..785b14091 100644
--- a/src/lib/krb5/asn.1/asn1buf.c
+++ b/src/lib/krb5/asn.1/asn1buf.c
@@ -93,7 +93,15 @@ void asn1buf_sync(buf, subbuf)
asn1buf * buf;
asn1buf * subbuf;
{
- buf->next = subbuf->bound + 1;
+ if (subbuf->bound != buf->bound) {
+ buf->next = subbuf->bound + 1;
+ } else {
+ /*
+ * indefinite length; this will suck
+ * XXX - need to skip fields somehow
+ */
+ buf->next = subbuf->next;
+ }
}
asn1_error_code asn1buf_destroy(buf)