diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2012-02-05 11:50:49 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-02-05 11:50:49 +0100 |
commit | ee774479deb609fdb6989c7c452d6007ab4d3384 (patch) | |
tree | bb8b7b77a2354322b18090326bf794ed206332d5 /src/bind.c | |
parent | 840f75f10c4e9fd7f6fb6289ae9902a40906bde6 (diff) | |
download | libssh-ee774479deb609fdb6989c7c452d6007ab4d3384.tar.gz libssh-ee774479deb609fdb6989c7c452d6007ab4d3384.tar.xz libssh-ee774479deb609fdb6989c7c452d6007ab4d3384.zip |
session: Use a struct for all options.
Diffstat (limited to 'src/bind.c')
-rw-r--r-- | src/bind.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -356,19 +356,19 @@ int ssh_bind_accept_fd(ssh_bind sshbind, ssh_session session, socket_t fd){ /* copy options */ for (i = 0; i < 10; ++i) { if (sshbind->wanted_methods[i]) { - session->wanted_methods[i] = strdup(sshbind->wanted_methods[i]); - if (session->wanted_methods[i] == NULL) { + session->opts.wanted_methods[i] = strdup(sshbind->wanted_methods[i]); + if (session->opts.wanted_methods[i] == NULL) { return SSH_ERROR; } } } if (sshbind->bindaddr == NULL) - session->bindaddr = NULL; + session->opts.bindaddr = NULL; else { - SAFE_FREE(session->bindaddr); - session->bindaddr = strdup(sshbind->bindaddr); - if (session->bindaddr == NULL) { + SAFE_FREE(session->opts.bindaddr); + session->opts.bindaddr = strdup(sshbind->bindaddr); + if (session->opts.bindaddr == NULL) { return SSH_ERROR; } } |