diff options
author | Kamil Dudka <kdudka@redhat.com> | 2010-09-06 15:31:01 +0200 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2010-09-06 15:31:01 +0200 |
commit | f3e3f5f1b26991b1c6660382d7c2eb74fab3d3e9 (patch) | |
tree | cc5fbb2db5cf93c8fa83ca8811c75e2e0e7c40a4 /lib/rtsp.c | |
parent | 62ef4652624cac5dac86f33f51fbf80c4dd9f063 (diff) | |
download | curl-f3e3f5f1b26991b1c6660382d7c2eb74fab3d3e9.tar.gz |
rtsp: avoid SIGSEGV on malformed header
Diffstat (limited to 'lib/rtsp.c')
-rw-r--r-- | lib/rtsp.c | 2 |
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) { |