Merge pull request #2233 from signalwire/coverity_1325269
[core] Coverity 1325269 Dereference before null check
This commit is contained in:
commit
ff71b9089c
|
@ -1719,9 +1719,6 @@ SWITCH_DECLARE(switch_status_t) switch_jb_get_packet(switch_jb_t *jb, switch_rtp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node) {
|
|
||||||
status = SWITCH_STATUS_SUCCESS;
|
|
||||||
|
|
||||||
*packet = node->packet;
|
*packet = node->packet;
|
||||||
*len = node->len;
|
*len = node->len;
|
||||||
jb->last_len = *len;
|
jb->last_len = *len;
|
||||||
|
@ -1730,10 +1727,6 @@ SWITCH_DECLARE(switch_status_t) switch_jb_get_packet(switch_jb_t *jb, switch_rtp
|
||||||
|
|
||||||
jb_debug(jb, 2, "GET packet ts:%u seq:%u %s\n", ntohl(packet->header.ts), ntohs(packet->header.seq), packet->header.m ? " <MARK>" : "");
|
jb_debug(jb, 2, "GET packet ts:%u seq:%u %s\n", ntohl(packet->header.ts), ntohs(packet->header.seq), packet->header.m ? " <MARK>" : "");
|
||||||
|
|
||||||
} else {
|
|
||||||
status = SWITCH_STATUS_MORE_DATA;
|
|
||||||
}
|
|
||||||
|
|
||||||
end:
|
end:
|
||||||
|
|
||||||
if (plc) {
|
if (plc) {
|
||||||
|
|
Loading…
Reference in New Issue