mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-08 14:17:02 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@29092 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -11325,8 +11325,9 @@ static int sipsock_read(int *id, int fd, short events, void *ignore)
|
||||
}
|
||||
if (res == sizeof(req.data)) {
|
||||
ast_log(LOG_DEBUG, "Received packet exceeds buffer. Data is possibly lost\n");
|
||||
}
|
||||
req.data[res] = '\0';
|
||||
req.data[sizeof(req.data) - 1] = '\0';
|
||||
} else
|
||||
req.data[res] = '\0';
|
||||
req.len = res;
|
||||
if(sip_debug_test_addr(&sin))
|
||||
ast_set_flag(&req, SIP_PKT_DEBUG);
|
||||
|
Reference in New Issue
Block a user