aboutsummaryrefslogtreecommitdiff
path: root/libssh/server.c
diff options
context:
space:
mode:
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));