X-Git-Url: https://git.piment-noir.org/?p=deb_libnfs.git;a=blobdiff_plain;f=lib%2Finit.c;h=bbed183fdf4fc8367d63d4630fdc96da2d2891dd;hp=782a7ea3edbac2da46c4c557d2de37a945ca24cb;hb=1a6ec3ee76a2e33d6c86ad81d00922dabe426f50;hpb=a1911b0144768c0d67ffd2a000a8e34de39e490e diff --git a/lib/init.c b/lib/init.c index 782a7ea..bbed183 100644 --- a/lib/init.c +++ b/lib/init.c @@ -235,7 +235,7 @@ void rpc_destroy_context(struct rpc_context *rpc) while((pdu = rpc->outqueue.head) != NULL) { pdu->cb(rpc, RPC_STATUS_CANCEL, NULL, pdu->private_data); - rpc->outqueue.head = pdu->next; + LIBNFS_LIST_REMOVE(&rpc->outqueue.head, pdu); rpc_free_pdu(rpc, pdu); } @@ -244,7 +244,7 @@ void rpc_destroy_context(struct rpc_context *rpc) while((pdu = q->head) != NULL) { pdu->cb(rpc, RPC_STATUS_CANCEL, NULL, pdu->private_data); - rpc->outqueue.head = pdu->next; + LIBNFS_LIST_REMOVE(&q->head, pdu); rpc_free_pdu(rpc, pdu); } }