diff options
author | Luke Leighton <lkcl@samba.org> | 2000-05-31 05:39:54 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-05-31 05:39:54 +0000 |
commit | d500cbb2064e4beb40a760f62b53a3f75f2a87fb (patch) | |
tree | 2cf28401f2e473d02a8d5555a4007c65f511051b /source3/aparser/templates/prs_array_remainder.tpl | |
parent | 23d705672eea5562c585421c2d4c0be694a7f354 (diff) | |
download | samba-d500cbb2064e4beb40a760f62b53a3f75f2a87fb.tar.gz samba-d500cbb2064e4beb40a760f62b53a3f75f2a87fb.tar.bz2 samba-d500cbb2064e4beb40a760f62b53a3f75f2a87fb.zip |
messing about.
(This used to be commit 9c6f2d75d848a280f25f2377130953ecd824b7b1)
Diffstat (limited to 'source3/aparser/templates/prs_array_remainder.tpl')
-rw-r--r-- | source3/aparser/templates/prs_array_remainder.tpl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/aparser/templates/prs_array_remainder.tpl b/source3/aparser/templates/prs_array_remainder.tpl index 80c5d8b9af..c8b1e2ab5a 100644 --- a/source3/aparser/templates/prs_array_remainder.tpl +++ b/source3/aparser/templates/prs_array_remainder.tpl @@ -1,3 +1,4 @@ + if (UNMARSHALLING(ps)) { int i; for (i=0;ps->data_offset < ps->buffer_size;i++) { @@ -5,3 +6,12 @@ if (!io_@TYPE@("@ELEM@...", ps, depth+1, &il->@ELEM@[i], @FLAGS@)) goto fail; } } + else + { + int i = -1; + /* HACK ALERT! */ + do { + i++; + if (!io_@TYPE@("@ELEM@...", ps, depth+1, &il->@ELEM@[i], @FLAGS@)) goto fail; + } while (il->@ELEM@[i].tag2 != 0); + } |