mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pipewire: rtsp-client: check if the status code code is a number
This commit is contained in:
parent
56df6fed13
commit
9b63c5011d
1 changed files with 2 additions and 0 deletions
|
|
@ -265,6 +265,8 @@ static int process_input(struct pw_rtsp_client *client)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
client->status = atoi(s);
|
client->status = atoi(s);
|
||||||
|
if (client->status == 0)
|
||||||
|
goto error;
|
||||||
|
|
||||||
s = pw_split_walk(buf, " ", &len, &state);
|
s = pw_split_walk(buf, " ", &len, &state);
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue