RTSP: Parse the status code correctly for taps

The end pointer for get_token_len needs to be the line end.
Using a fixed length of 5 won't actually get the version token.
Fixes geting the response codes for the RTSP tapes, instead
of response messages being assigned as Other.
This commit is contained in:
John Thacker 2021-12-08 21:36:47 -05:00 committed by Wireshark GitLab Utility
parent 5fd23d72b6
commit c648a40751
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ is_rtsp_request_or_reply(const guchar *line, size_t linelen, rtsp_type_t *type)
*/
*type = RTSP_REPLY;
/* The first token is the version. */
tokenlen = get_token_len(line, line+5, &token);
tokenlen = get_token_len(line, line+linelen, &token);
if (tokenlen != 0) {
/* The next token is the status code. */
tokenlen = get_token_len(token, line+linelen, &next_token);