Commit f8f96e1d authored by Slava Monich's avatar Slava Monich

[mms-dump] Don't decode empty values

parent fa28e9e1
......@@ -800,7 +800,8 @@ mms_decode_headers(
}
printf("%s%s: ", prefix, hdr_name);
dec = value_decoder_for_header(hdr_name);
if (!dec(wsp_header_iter_get_val_type(iter), val, val_len, flags)) {
if (val_len > 0 &&
!dec(wsp_header_iter_get_val_type(iter), val, val_len, flags)) {
printf("ERROR!\n");
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment