Fix misleading error log
The check is not for an AMR RTP packet. It actually only checks for RTP header. Change-Id: I60d7dbfeb2977bcb7102eed19e1c73c9433151a7
This commit is contained in:
parent
103e50a561
commit
0807771b9e
|
@ -691,7 +691,7 @@ static int rfc5993_hr_convert(struct mgcp_endpoint *endp, struct msgb *msg)
|
|||
{
|
||||
struct rtp_hdr *rtp_hdr;
|
||||
if (msgb_length(msg) < sizeof(struct rtp_hdr)) {
|
||||
LOGPENDP(endp, DRTP, LOGL_ERROR, "AMR RTP packet too short (%d < %zu)\n",
|
||||
LOGPENDP(endp, DRTP, LOGL_ERROR, "RTP packet too short (%d < %zu)\n",
|
||||
msgb_length(msg), sizeof(struct rtp_hdr));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue