Fix return value in dh_params