summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-18 21:53:33 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-18 21:53:33 +0000
commit1db154464e03e9561cb8fdb7b25d7f2c5ed8de84 (patch)
treeeeb357a66ea83b8cc05afaf5731efea592645b81
parent60f0a86c75ab6a34d38a6ffb402696127e9963e2 (diff)
downloadtinyproxy-1db154464e03e9561cb8fdb7b25d7f2c5ed8de84.tar.gz
tinyproxy-1db154464e03e9561cb8fdb7b25d7f2c5ed8de84.zip
Removed the call to inet_aton() since the gethostbyname() function handles
the dotted-decimal case itself.
-rw-r--r--ChangeLog4
-rw-r--r--src/sock.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9c0d6d4..678fa96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2002-04-18 Robert James Kaes <rjkaes@flarenet.com>
+ * src/sock.c (lookup_domain): Removed the call to inet_aton()
+ since the gethostbyname() will handle the dotted-decimal case
+ anyway.
+
* src/reqs.c: Added a new show_stats field in the conn_s structure
so that we will process the client's headers properly before
trying to send a HTTP response back.
diff --git a/src/sock.c b/src/sock.c
index 9723a36..53bbbb5 100644
--- a/src/sock.c
+++ b/src/sock.c
@@ -1,4 +1,4 @@
-/* $Id: sock.c,v 1.29 2002-04-18 18:48:22 rjkaes Exp $
+/* $Id: sock.c,v 1.30 2002-04-18 21:53:33 rjkaes Exp $
*
* Sockets are created and destroyed here. When a new connection comes in from
* a client, we need to copy the socket and the create a second socket to the
@@ -50,11 +50,13 @@ lookup_domain(struct in_addr *addr, const char *domain)
if (!addr || !domain)
return -1;
+#if 0
/*
* First check to see if the domain is in dotted-decimal format.
*/
if (inet_aton(domain, (struct in_addr *)addr) != 0)
return 0;
+#endif
/*
* Okay, it's an alpha-numeric domain, so look it up.