That length is used to advance the pointer into the packet, so it has to
include the padding.
size_t l = 0;
uint32_t strsize;
const u_char *sp;
size_t l = 0;
uint32_t strsize;
const u_char *sp;
if (((s - startbuf) % 2) != 0) {
ND_TCHECK_1(s);
s++;
if (((s - startbuf) % 2) != 0) {
ND_TCHECK_1(s);
s++;
} else {
/*
* Counted string.
*/
strsize = *len;
} else {
/*
* Counted string.
*/
strsize = *len;
}
if (!use_unicode) {
while (strsize != 0) {
}
if (!use_unicode) {
while (strsize != 0) {