Magnetic field structure in flare-associated solar-wind disturbances