Fix Bug 976
Looking at frame 170 in the trace, it looks like
tvb_get_ephemeral_text() struggles with the null character in the middle
of the 4th parameter (in the WWW-Authenticate header) and returns NULL.
The attached patch uses tvb_format_text() instead which also does a
better job of showing the string.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18589
f5534014-38df-0310-8fa8-
9805f1628bb7
if (i == array_length(auth_parameters_hf_array))
{
proto_tree_add_text(tree, tvb, start_offset, current_offset-start_offset,
- tvb_get_ephemeral_string(tvb, start_offset,
- current_offset-start_offset));
+ tvb_format_text(tvb, start_offset,
+ current_offset-start_offset));
}
return current_offset;