Two Inspections

Facts: The two entrepreneurs A and B manufacture a machine on behalf of their customer C. Due to a fault in the machine, 10 tons of chocolate are destroyed at customer C’s plant, meaning that C is also unable to supply its customer D. A, who caused the fault in the machine by incorrectly dimensioning a component, is now insolvent.

Question: From whom can C obtain compensation for his loss?