From 7aea2d522df515a71447998e9875638ccac7b4b5 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Mon, 6 Sep 2010 16:03:37 +0200 Subject: rtsp: avoid SIGSEGV on malformed header --- lib/rtsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rtsp.c') diff --git a/lib/rtsp.c b/lib/rtsp.c index 16dfa27cb..1254c7389 100644 --- a/lib/rtsp.c +++ b/lib/rtsp.c @@ -706,10 +706,10 @@ 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) { + if(!*start) { failf(data, "Got a blank Session ID"); } else if(data->set.str[STRING_RTSP_SESSION_ID]) { -- cgit v1.2.3