mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Fix potential seg
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@985 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3053,7 +3053,8 @@ static int get_destination(struct sip_pvt *p, struct sip_request *oreq)
|
||||
req = oreq;
|
||||
if (!req)
|
||||
req = &p->initreq;
|
||||
strncpy(tmp, req->rlPart2, sizeof(tmp) - 1);
|
||||
if (req->rlPart2)
|
||||
strncpy(tmp, req->rlPart2, sizeof(tmp) - 1);
|
||||
c = ditch_braces(tmp);
|
||||
if (strncmp(c, "sip:", 4)) {
|
||||
ast_log(LOG_WARNING, "Huh? Not a SIP header (%s)?\n", c);
|
||||
|
Reference in New Issue
Block a user