You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2006/06/30 00:09:08 UTC

svn commit: r418148 - /spamassassin/trunk/spamc/libspamc.c

Author: jm
Date: Thu Jun 29 15:09:08 2006
New Revision: 418148

URL: http://svn.apache.org/viewvc?rev=418148&view=rev
Log:
no longer using string portnames here

Modified:
    spamassassin/trunk/spamc/libspamc.c

Modified: spamassassin/trunk/spamc/libspamc.c
URL: http://svn.apache.org/viewvc/spamassassin/trunk/spamc/libspamc.c?rev=418148&r1=418147&r2=418148&view=diff
==============================================================================
--- spamassassin/trunk/spamc/libspamc.c (original)
+++ spamassassin/trunk/spamc/libspamc.c Thu Jun 29 15:09:08 2006
@@ -410,9 +410,6 @@
 
     char host[SPAMC_MAXHOST-1]; /* hostname, for logging */
     char port[SPAMC_MAXSERV-1]; /* port, for logging */
-                  /* needs larger size to accomodate strings for
-                    * ports (eg. port 783 resolves to 'spamd' from
-                    * getnameinfo() */
 
     assert(tp != 0);
     assert(sockptr != 0);
@@ -459,7 +456,7 @@
                       family, host, port, numloops + 1, MAX_CONNECT_RETRIES);
 #endif
 
-              status = connect(mysock, res->ai_addr, res->ai_addrlen);
+            status = connect(mysock, res->ai_addr, res->ai_addrlen);
 
             if (status != 0) {
 #ifndef _WIN32