fix tlog call
authorteodor <teodor>
Sun, 26 Sep 2004 17:44:55 +0000 (17:44 +0000)
committerteodor <teodor>
Sun, 26 Sep 2004 17:44:55 +0000 (17:44 +0000)
tcp.c

diff --git a/tcp.c b/tcp.c
index 0273787..d4204a1 100644 (file)
--- a/tcp.c
+++ b/tcp.c
@@ -146,7 +146,7 @@ setlinger( TC_Connection *cs ) {
 
        ling.l_onoff = ling.l_linger = 0;
        if (setsockopt(cs->fd, SOL_SOCKET,SO_LINGER,(char *)&ling,sizeof(ling))==-1) {
-               tlog(TL_ALARM,"setsockopt: LINGER %s:%d - %s",inet_ntoa(cs->serv_addr.sin_addr),
+               tlog(TL_ALARM,"setsockopt: LINGER %s:%d - %s",inet_ntoa(cs->serv_addr.sin_addr), ntohs(cs->serv_addr.sin_port),
                        strerror(errno));
                shutdown(cs->fd,SHUT_RDWR);
                close(cs->fd);