Don't dereference ndo->ndo_espsecret when it is NULL.