Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config parameters get corrupt somewhere when using c wrapper #3

Open
Ryzee119 opened this issue May 22, 2022 · 0 comments
Open

Config parameters get corrupt somewhere when using c wrapper #3

Ryzee119 opened this issue May 22, 2022 · 0 comments

Comments

@Ryzee119
Copy link
Collaborator

My setup is like this:

ftpConfig conf;
conf.enable = true;
conf.username = "xbox";
conf.password = "xbox";
conf.port = 21;
ftp_server = new_ftpServer(&conf);
while(1) {
    run_ftpServer(ftp_server);
    Sleep(1);
}

Adding printfs to here

int FtpServer::init() {
I get:

user: "xbox"
password: "xbox"
port: "21"

Then here:

void ftpConnection::cmdUser(std::string const& arg) {

user: "xbox"
password: ""
port: "657264"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant