[or-cvs] proxies send port in host order as ascii string

Roger Dingledine arma at seul.org
Sat Aug 24 07:56:36 UTC 2002


Update of /home/or/cvsroot/src/smtpap
In directory moria.seul.org:/home/arma/work/onion/cvs/src/smtpap

Modified Files:
	smtpap.c 
Log Message:
proxies send port in host order as ascii string


Index: smtpap.c
===================================================================
RCS file: /home/or/cvsroot/src/smtpap/smtpap.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- smtpap.c	12 Jul 2002 18:14:17 -0000	1.2
+++ smtpap.c	24 Aug 2002 07:56:34 -0000	1.3
@@ -8,6 +8,9 @@
 /*
  * Changes :
  * $Log$
+ * Revision 1.3  2002/08/24 07:56:34  arma
+ * proxies send port in host order as ascii string
+ *
  * Revision 1.2  2002/07/12 18:14:17  montrose
  * removed loglevel from global namespace. severity level is set using log() with a NULL format argument now. example: log(LOG_ERR,NULL);
  *
@@ -768,7 +771,7 @@
 		    else /* connection established, now send the standard structure + address and wait for a response */
 		    {
 		      /* write the message to the op_out buffer */
-		      snprintf(dest_port_str,6,"%u",htons(SMTPAP_DEFAULT_SMTP_PORT));
+		      snprintf(dest_port_str,6,"%u",SMTPAP_DEFAULT_SMTP_PORT);
 
 		      if (op_out != NULL)
 		      {



More information about the tor-commits mailing list