Set salt length after the malloc has succeeded