X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftcpip.c;fp=src%2Ftcpip.c;h=a14f66e8065ef66d9032138076694c31e9b3b45c;hb=80208a4a031b6927b4a88b038aab242699a22122;hp=21fa041fcb6f0ad68d06c954499960b26b5d2f25;hpb=14ec7648d31510176ab40605f7e05866fb541716;p=yaz-moved-to-github.git diff --git a/src/tcpip.c b/src/tcpip.c index 21fa041..a14f66e 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -503,11 +503,7 @@ static struct addrinfo *create_net_socket(COMSTACK h) } if (r) { - int xerrno = errno; - if (xerrno == EINVAL) - fprintf(stderr, "bind returned EINVAL\n"); - fprintf(stderr, "bind failed errno=%d %s\n", xerrno, - strerror(xerrno)); + h->cerrno = CSYSERR; freeaddrinfo(ai); return 0; }