aboutsummaryrefslogtreecommitdiff
path: root/libssh/server.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2005-08-10 13:22:52 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2005-08-10 13:22:52 +0000
commit96a99bab7853998ec8c23da6bcb9ffb10855705d (patch)
tree25a79efb0fbcddb346fb65a4cdb554e78c7bec3b /libssh/server.c
parent5c26ae735483d140f802d58b1872b2fe9468d219 (diff)
downloadlibssh-96a99bab7853998ec8c23da6bcb9ffb10855705d.tar.gz
libssh-96a99bab7853998ec8c23da6bcb9ffb10855705d.tar.xz
libssh-96a99bab7853998ec8c23da6bcb9ffb10855705d.zip
The kex works, the client authentifies (with password) then it's possible to choose a subsystem. The channels don't completely work.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@7 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/server.c')
-rw-r--r--libssh/server.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libssh/server.c b/libssh/server.c
index 62294436..336aaf51 100644
--- a/libssh/server.c
+++ b/libssh/server.c
@@ -38,12 +38,8 @@ static int bind_socket(SSH_BIND *ssh_bind,char *hostname, int port) {
int opt = 1;
int s = socket(PF_INET, SOCK_STREAM, 0);
struct hostent *hp=NULL;
-#ifdef HAVE_GETHOSTBYADDR
- hp=gethostbyaddr(hostname,4,AF_INET);
-#endif
#ifdef HAVE_GETHOSTBYNAME
- if(!hp)
- hp=gethostbyname(hostname);
+ hp=gethostbyname(hostname);
#endif
if(!hp){
ssh_set_error(ssh_bind,SSH_FATAL,"resolving %s: %s",hostname,hstrerror(h_errno));