An update I made earlier to try and fix segfault was unnecessary and causing the problem - marking t as seen when 0 capacity link found.  Also found a math error in maxflow (= instead of +=) - our test graph now returns a flow of 26 like it should