Skip to content
Permalink
Browse files Browse the repository at this point in the history
bugfix (#245) - long incoming message crashes server
  • Loading branch information
davehorton committed Nov 29, 2022
1 parent c2b6780 commit 4cf9fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller.cpp
Expand Up @@ -273,7 +273,7 @@ namespace drachtio {
if( complete ) {
m_os.flush() ;
m_sipMessage = m_os.str() ;
m_sipMessage.resize( m_sipMessage.length() - 1) ;
if (m_sipMessage.length() > 1) m_sipMessage.resize( m_sipMessage.length() - 1) ;
boost::replace_all(m_sipMessage, "\n", DR_CRLF);
}
else if( 0 == strcmp(szLine, "\n") ) {
Expand Down

0 comments on commit 4cf9fe2

Please sign in to comment.