From 9b63c5011dcbe7c424524ee500b26cf6f4764133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Wed, 7 Sep 2022 03:26:06 +0200 Subject: [PATCH] pipewire: rtsp-client: check if the status code code is a number --- src/modules/module-raop/rtsp-client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/module-raop/rtsp-client.c b/src/modules/module-raop/rtsp-client.c index 5666e1e61..4615f1d62 100644 --- a/src/modules/module-raop/rtsp-client.c +++ b/src/modules/module-raop/rtsp-client.c @@ -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)