Bugzilla – Bug 731
Send function in point-to-point-net-device fails to check the return value of the Dequeue function
Last modified: 2010-02-05 13:11:07 UTC
In the Send function when the queue is empty (m_txMachineState == READY) a packet is queued and then immediately dequeued (comments explain that this is done in order to hit all the tracing hooks) but the return value of the Dequeue function is not checked. If the Enqueue function decides to drop the packet the program exits with code -11 (while it's true that dropping a packet when it's the only one in the queue is probably not the most obvious solution, it is possible to come with cases where this could be reasonable).
Created attachment 714 [details] patch to fix Craig, please review. Passes all tests.
Craig please review and commit if ok.
changeset bd6c06ad0f41