[asterisk-commits] dvossel: branch 1.8 r330575 - /branches/1.8/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 2 10:53:25 CDT 2011


Author: dvossel
Date: Tue Aug  2 10:53:21 2011
New Revision: 330575

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=330575
Log:
Fixes uninitialized string buffer in log message.

(closes issue ASTERISK-17200)
Reported by: lmadsen

Modified:
    branches/1.8/channels/chan_sip.c

Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=330575&r1=330574&r2=330575
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Tue Aug  2 10:53:21 2011
@@ -18124,7 +18124,7 @@
 /*! \brief  Receive SIP INFO Message */
 static void handle_request_info(struct sip_pvt *p, struct sip_request *req)
 {
-	char buf[1024];
+	char buf[1024] = { 0, };
 	unsigned int event;
 	const char *c = get_header(req, "Content-Type");
 




More information about the asterisk-commits mailing list