NULL pointer handling in nt_lm_owf_gen