* asn1buf.c (asn1buf_sync): Interim fix for DCE compat problem
authorTom Yu <tlyu@mit.edu>
Thu, 1 Jul 1999 00:38:28 +0000 (00:38 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 1 Jul 1999 00:38:28 +0000 (00:38 +0000)
with indefinite length encodings.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11540 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/ChangeLog
src/lib/krb5/asn.1/asn1buf.c

index caeecfe630a286e43045b3e674832d0ecf13840c..33940ce205c2898c3b9df1e79ea887565870ac71 100644 (file)
@@ -1,3 +1,8 @@
+1999-06-30  Tom Yu  <tlyu@mit.edu>
+
+       * asn1buf.c (asn1buf_sync): Interim fix for DCE compat problem
+       with indefinite length encodings.
+
 1999-06-15  Tom Yu  <tlyu@mit.edu>
 
        * asn1_encode.c (asn1_encode_generaltime): Fix minor bug in
index 52ac387d50dac687e5e4b98c063f81b37070c850..785b140918c4342c5706c9a6ac50d045dddb0fdc 100644 (file)
@@ -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)