uint16_t len)
{
uint32_t uidcounter, items;
- uint16_t charset;
- uint8_t namelen, status;
+ uint16_t charset, namelen;
+ uint8_t status;
p_indent(level, frm);
if (hdr & 0x02)
goto response;
- if (len < 3) {
+ if (len < 4) {
printf("PDU Malformed\n");
raw_dump(level, frm);
return;
p_indent(level, frm);
- namelen = get_u8(frm);
- printf("Length: 0x%02x (%u)\n", namelen, namelen);
+ namelen = get_u16(frm);
+ printf("Length: 0x%04x (%u)\n", namelen, namelen);
p_indent(level, frm);
uint8_t c = get_u8(frm);
printf("%1c", isprint(c) ? c : '.');
}
+ printf("\n");
return;