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:
Pau Espin 2022-10-19 19:06:45 +02:00
parent 103e50a561
commit 0807771b9e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}