From: Mark Hills Date: Thu, 27 Feb 2014 12:52:54 +0000 (+0000) Subject: Ensure the next pointer is correct X-Git-Tag: upstream/1.9.6^2~41^2~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d46c3d622ba5e7cf7318642e674d68cdeb0bd7e5;p=deb_libnfs.git 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. --- 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; } /*