summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-08-05 10:49:44 +0000
committerphintuka <phintuka>2009-08-05 10:49:44 +0000
commitdcc6ccb3b8806e1d326ece1a164a85623d168338 (patch)
tree6b346d376868a2a0c843a08e3785ad3fab876f8e
parentbc3cc9dd760d078eafe2ba0eeb02b1291a06ee6c (diff)
downloadxineliboutput-dcc6ccb3b8806e1d326ece1a164a85623d168338.tar.gz
xineliboutput-dcc6ccb3b8806e1d326ece1a164a85623d168338.tar.bz2
SetHeader(): Check if data is NULL before copying it.
--> header can be resetted without providing new one by calling SetHeader(NULL, 0, true);
-rw-r--r--frontend_svr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend_svr.c b/frontend_svr.c
index 4552ac08..b05b4767 100644
--- a/frontend_svr.c
+++ b/frontend_svr.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: frontend_svr.c,v 1.75 2009-08-05 10:46:15 phintuka Exp $
+ * $Id: frontend_svr.c,v 1.76 2009-08-05 10:49:44 phintuka Exp $
*
*/
@@ -394,7 +394,7 @@ void cXinelibServer::SetHeader(const uchar *Data, int Length, bool Reset)
}
}
- if (m_Header) {
+ if (m_Header && Data) {
memcpy(m_Header + m_HeaderLength, Data, Length);
m_HeaderLength += Length;
}