Only slaves in the ten seceding states were freed. It did not outlaw slavery or make freed slaves citizens.
So after the war, slavery was made legal again, right?