From d46c3d622ba5e7cf7318642e674d68cdeb0bd7e5 Mon Sep 17 00:00:00 2001 From: Mark Hills Date: Thu, 27 Feb 2014 12:52:54 +0000 Subject: [PATCH] Ensure the next pointer is correct Fixes a bug where the next pointer was not being explicitly set. We were ok much of the time due to zero-filled memory, and also we need this if the same pdu is re-queued. --- lib/pdu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pdu.c b/lib/pdu.c index 2f4761d..05c2aed 100644 --- a/lib/pdu.c +++ b/lib/pdu.c @@ -65,6 +65,7 @@ void rpc_enqueue(struct rpc_queue *q, struct rpc_pdu *pdu) else q->tail->next = pdu; q->tail = pdu; + pdu->next = NULL; } /* -- 2.34.1