summaryrefslogtreecommitdiff
path: root/lib/rtsp.c
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2010-09-06 15:31:01 +0200
committerKamil Dudka <kdudka@redhat.com>2010-09-06 15:31:01 +0200
commitf3e3f5f1b26991b1c6660382d7c2eb74fab3d3e9 (patch)
treecc5fbb2db5cf93c8fa83ca8811c75e2e0e7c40a4 /lib/rtsp.c
parent62ef4652624cac5dac86f33f51fbf80c4dd9f063 (diff)
downloadcurl-f3e3f5f1b26991b1c6660382d7c2eb74fab3d3e9.tar.gz
rtsp: avoid SIGSEGV on malformed header
Diffstat (limited to 'lib/rtsp.c')
-rw-r--r--lib/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rtsp.c b/lib/rtsp.c
index 032f58f7e..16dfa27cb 100644
--- a/lib/rtsp.c
+++ b/lib/rtsp.c
@@ -706,7 +706,7 @@ CURLcode Curl_rtsp_parseheader(struct connectdata *conn,
/* Find the first non-space letter */
start = header + 9;
- while(*start && ISSPACE(*start))
+ while(start && ISSPACE(*start))
start++;
if(!start) {