X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftcpdchk.c;h=f98417033ff669a6446a0871009249494c859d59;hp=1d83211e1ff2a312ad2ac318adde6ce02cfb31c6;hb=f3fa080453f6e57618216f6e58d871fb06f0d1b6;hpb=d1ea8fe378111656d531fb426eaa10f57d56f29f diff --git a/src/tcpdchk.c b/src/tcpdchk.c index 1d83211..f984170 100644 --- a/src/tcpdchk.c +++ b/src/tcpdchk.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ /** @@ -68,7 +68,7 @@ int check_ip_tcpd(void *cd, const char *addr, int len, int type) struct hostent *host; struct sockaddr_in *addr_in = (struct sockaddr_in *) addr; - + if ((host = gethostbyaddr((char*)&addr_in->sin_addr, sizeof(addr_in->sin_addr), AF_INET)))