aboutsummaryrefslogtreecommitdiff
path: root/src/smtpap/smtpap.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2002-08-24 07:56:34 +0000
committerRoger Dingledine <arma@torproject.org>2002-08-24 07:56:34 +0000
commit39423023af7a13eff3263c59c7856c5cefbf2484 (patch)
treec4d47f9f7574ee37245f3ad5bf3e0724221d12e0 /src/smtpap/smtpap.c
parentb8b8ab2fd6753c3f8b1e20e43047e29b5e44aea1 (diff)
downloadtor-39423023af7a13eff3263c59c7856c5cefbf2484.tar
tor-39423023af7a13eff3263c59c7856c5cefbf2484.tar.gz
proxies send port in host order as ascii string
svn:r83
Diffstat (limited to 'src/smtpap/smtpap.c')
-rw-r--r--src/smtpap/smtpap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/smtpap/smtpap.c b/src/smtpap/smtpap.c
index a420268a7..0e97eaff0 100644
--- a/src/smtpap/smtpap.c
+++ b/src/smtpap/smtpap.c
@@ -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 @@ int handle_connection(int s, struct hostent *local, struct sockaddr_in remote, u
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)
{