mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04: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;
|
||||
|
||||
client->status = atoi(s);
|
||||
if (client->status == 0)
|
||||
goto error;
|
||||
|
||||
s = pw_split_walk(buf, " ", &len, &state);
|
||||
if (s == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue