projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
68804ff
)
client: guard against invalid paths
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 9 Mar 2010 12:42:50 +0000
(13:42 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 9 Mar 2010 12:42:50 +0000
(13:42 +0100)
gst/rtsp-server/rtsp-client.c
patch
|
blob
|
history
diff --git
a/gst/rtsp-server/rtsp-client.c
b/gst/rtsp-server/rtsp-client.c
index
b0e10e3
..
350291c
100644
(file)
--- a/
gst/rtsp-server/rtsp-client.c
+++ b/
gst/rtsp-server/rtsp-client.c
@@
-721,8
+721,8
@@
handle_setup_request (GstRTSPClient * client, GstRTSPUrl * uri,
* always /stream=%d so we need to strip that off
* parse the stream we need to configure, look for the stream in the abspath
* first and then in the query. */
- if (!(pos = strstr (uri->abspath, "/stream="))) {
- if (!(pos = strstr (uri->query, "/stream=")))
+ if (
uri->abspath == NULL ||
!(pos = strstr (uri->abspath, "/stream="))) {
+ if (
uri->query == NULL ||
!(pos = strstr (uri->query, "/stream=")))
goto bad_request;
}