[Live-devel] Bad Response on Get Param
Eric HEURTEL
eric at sound4.biz
Wed Feb 28 02:40:14 PST 2018
Hi Ross,
it seems that the special case test in
RTSPClient::handleGET_PARAMETERResponse() fails when this correct
response is sent :
RTSP/1.0 200 OK \r\n
CSeq: 2 \r\n
Date: Wed, Feb 28 2018 10:34:20 GMT \r\n
Session: 55879070\r\n
\r\n
In this case I get a parameterName="\r\n" (strlen=2) and
resultValueString=resultValueStringEnd, which fails at
if (resultValueString == resultValueStringEnd) break;
Proposed correction :
--- if (strncasecmp(resultValueString, parameterName, parameterNameLen)
== 0) {
+++ if (parameterNameLen && _strncasecmp(resultValueString,
parameterName, parameterNameLen) == 0) {
Regards,
Eric Heurtel - SOUND4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20180228/baa25632/attachment.html>
More information about the live-devel
mailing list