Fix potential seg

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@985 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-05-09 19:02:10 +00:00
parent 5aa87dbfa7
commit 067eae567c

View File

@@ -3053,6 +3053,7 @@ static int get_destination(struct sip_pvt *p, struct sip_request *oreq)
req = oreq;
if (!req)
req = &p->initreq;
if (req->rlPart2)
strncpy(tmp, req->rlPart2, sizeof(tmp) - 1);
c = ditch_braces(tmp);
if (strncmp(c, "sip:", 4)) {