aboutsummaryrefslogtreecommitdiff
path: root/lib/rtsp.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-06 17:30:06 +0000
committerYang Tse <yangsita@gmail.com>2010-02-06 17:30:06 +0000
commit71593dfe57e2b364fb794b1dc993e029e16d57f7 (patch)
treea45866cc6fee800cd2fb5e3c3293ba2607843145 /lib/rtsp.c
parent0f4a91afdedc4b1f7b02f8b015fde1889d80c104 (diff)
OOM handling fix
Diffstat (limited to 'lib/rtsp.c')
-rw-r--r--lib/rtsp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rtsp.c b/lib/rtsp.c
index 8f3218947..8aaac89ff 100644
--- a/lib/rtsp.c
+++ b/lib/rtsp.c
@@ -461,15 +461,17 @@ CURLcode Curl_rtsp(struct connectdata *conn, bool *done)
if(!Curl_checkheaders(data, "Content-Type:")) {
result = Curl_add_bufferf(req_buffer,
"Content-Type: text/parameters\r\n");
+ if(result)
+ return result;
}
- if(result)
- return result;
}
if(rtspreq == RTSPREQ_ANNOUNCE) {
if(!Curl_checkheaders(data, "Content-Type:")) {
result = Curl_add_bufferf(req_buffer,
"Content-Type: application/sdp\r\n");
+ if(result)
+ return result;
}
}