summaryrefslogtreecommitdiff
path: root/lib/rtsp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-03-20 11:52:27 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-03-20 11:52:27 +0100
commit4ff71183b999761b07d54dd44743a4d59b2dad84 (patch)
tree457a011cad4015afa19bc476d9e3a80091a698cd /lib/rtsp.c
parent2fc31dcf74bd0b1a5999a144664f957b7f8745e7 (diff)
downloadcurl-4ff71183b999761b07d54dd44743a4d59b2dad84.tar.gz
rtsp: parse "Session:" header properly
The parser skipped the initial letter, which presumably often is whitespace but doesn't have to be. Reported-by: Mike Hasselberg Bug: http://curl.haxx.se/mail/lib-2014-03/0134.html
Diffstat (limited to 'lib/rtsp.c')
-rw-r--r--lib/rtsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rtsp.c b/lib/rtsp.c
index 6bedbf0f9..5cd6cb467 100644
--- a/lib/rtsp.c
+++ b/lib/rtsp.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -763,7 +763,7 @@ CURLcode Curl_rtsp_parseheader(struct connectdata *conn,
char *start;
/* Find the first non-space letter */
- start = header + 9;
+ start = header + 8;
while(*start && ISSPACE(*start))
start++;