forked from osmocom/wireshark
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:
parent
5fd23d72b6
commit
c648a40751
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue