diff --git a/htc/htc_send.c b/htc/htc_send.c index 3ac12954a6..2a7b81c6e3 100644 --- a/htc/htc_send.c +++ b/htc/htc_send.c @@ -1068,8 +1068,10 @@ static enum HTC_SEND_QUEUE_RESULT htc_try_send(HTC_TARGET *target, /* pop off caller's queue */ pPacket = htc_packet_dequeue(pCallersSendQueue); A_ASSERT(pPacket); - /* insert into local queue */ - HTC_PACKET_ENQUEUE(&sendQueue, pPacket); + if (pPacket) + /* insert into local queue */ + HTC_PACKET_ENQUEUE(&sendQueue, + pPacket); } /* the caller's queue has all the packets that won't fit