aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-08-11 11:37:00 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-08-11 14:02:12 +0200
commit2c8ccdac14f87464e2a15eb7bab0d77c08dec2cf (patch)
treeae430b56c89a46200692a9b80e63f05b79291474 /lib
parent31e33a9a4663e0bf62b0815d22af879f2209bf6f (diff)
rtsp: ignore whitespace in session id
Follow-up to e577c43bb to fix test case 569 brekage: stop the parser at whitespace as well. Help-by: Erik Janssen
Diffstat (limited to 'lib')
-rw-r--r--lib/rtsp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rtsp.c b/lib/rtsp.c
index eb60ff782..ed3fd64c7 100644
--- a/lib/rtsp.c
+++ b/lib/rtsp.c
@@ -799,12 +799,12 @@ CURLcode Curl_rtsp_parseheader(struct connectdata *conn,
/* If the Session ID is not set, and we find it in a response, then set
* it.
*
- * Allow any content, up to the field seperator or end of line. RFC 2326
- * isn't 100% clear on the session ID and for example gstreamer does
- * url-encoded session ID's not covered by the standard.
+ * Allow any non whitespace content, up to the field seperator or end of
+ * line. RFC 2326 isn't 100% clear on the session ID and for example
+ * gstreamer does url-encoded session ID's not covered by the standard.
*/
char *end = start;
- while(*end && *end != ';')
+ while(*end && *end != ';' && !ISSPACE(*end))
end++;
/* Copy the id substring into a new buffer */