Commit f04ccd33 authored by Sébastien Escudier's avatar Sébastien Escudier

live555 : check for NULL string in OPTION callback

parent 195f9041
......@@ -550,7 +550,7 @@ static void continueAfterOPTIONS( RTSPClient* client, int result_code,
}
else
{
p_sys->b_get_param = (bool)strstr( result_string, "GET_PARAMETER" );
p_sys->b_get_param = result_string != NULL && strstr( result_string, "GET_PARAMETER" ) != NULL;
client->sendDescribeCommand( continueAfterDESCRIBE );
}
delete[] result_string;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment