Fix accidental strlen_zero mistransfer (bug #1592)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-05-09 20:46:18 +00:00
parent f2e0152108
commit 62eef7c695

View File

@@ -5020,11 +5020,11 @@ static void receive_info(struct sip_pvt *p, struct sip_request *req)
/* Try getting the "signal=" part */
if (ast_strlen_zero(c = get_sdp(req, "Signal")) && ast_strlen_zero(c = get_sdp(req, "d"))) {
strncpy(buf, c, sizeof(buf) - 1);
} else {
ast_log(LOG_WARNING, "Unable to retrieve DTMF signal from INFO message from %s\n", p->callid);
transmit_response(p, "200 OK", req); /* Should return error */
return;
} else {
strncpy(buf, c, sizeof(buf) - 1);
}
if (p->owner) { /* PBX call */