|
|
@ -136,13 +136,12 @@ public:
|
|
|
|
nof_subheaders = 0;
|
|
|
|
nof_subheaders = 0;
|
|
|
|
bool ret = false;
|
|
|
|
bool ret = false;
|
|
|
|
do {
|
|
|
|
do {
|
|
|
|
if (nof_subheaders < (int) max_subheaders) {
|
|
|
|
if (nof_subheaders < (int)max_subheaders) {
|
|
|
|
ret = subheaders[nof_subheaders].read_subheader(&ptr);
|
|
|
|
ret = subheaders[nof_subheaders].read_subheader(&ptr);
|
|
|
|
|
|
|
|
nof_subheaders++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} while (ret && nof_subheaders < (int) max_subheaders);
|
|
|
|
} while (ret && (nof_subheaders + 1) < (int)max_subheaders);
|
|
|
|
if (nof_subheaders + 1 < (int) max_subheaders) {
|
|
|
|
|
|
|
|
nof_subheaders++;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
for (int i=0;i<nof_subheaders;i++) {
|
|
|
|
for (int i=0;i<nof_subheaders;i++) {
|
|
|
|
subheaders[i].read_payload(&ptr);
|
|
|
|
subheaders[i].read_payload(&ptr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|