Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mms-dump] Don't decode empty values
  • Loading branch information
monich committed Mar 14, 2014
1 parent fa28e9e commit f8f96e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mms-dump/mms-dump.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit f8f96e1

Please sign in to comment.