summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2002-10-18 14:13:38 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2002-10-18 14:13:38 +0000
commit0e85793ac3d14aa4321e86292df8024de5a65668 (patch)
treeae889cf07a357227fb8ee55385a3fda248d5c386
parentf94042e2e5c38682b3679118710f3d5590e4378a (diff)
downloadlibapr-0e85793ac3d14aa4321e86292df8024de5a65668.tar.gz
apr_os_sock_put() shouldn't assume any particular protocol
Submitted by: Randall Stewart <randall@stewart.chicago.il.us> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63946 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--network_io/os2/sockets.c2
-rw-r--r--network_io/unix/sockets.c2
-rw-r--r--network_io/win32/sockets.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/network_io/os2/sockets.c b/network_io/os2/sockets.c
index 3f72bd590..9efc13535 100644
--- a/network_io/os2/sockets.c
+++ b/network_io/os2/sockets.c
@@ -297,7 +297,7 @@ APR_DECLARE(apr_status_t) apr_os_sock_put(apr_socket_t **sock, apr_os_sock_t *th
}
if ((*sock) == NULL) {
alloc_socket(sock, cont);
- set_socket_vars(*sock, AF_INET, SOCK_STREAM, APR_PROTO_TCP);
+ set_socket_vars(*sock, AF_INET, SOCK_STREAM, 0);
(*sock)->timeout = -1;
}
diff --git a/network_io/unix/sockets.c b/network_io/unix/sockets.c
index 7fe93a2d3..309230192 100644
--- a/network_io/unix/sockets.c
+++ b/network_io/unix/sockets.c
@@ -377,7 +377,7 @@ apr_status_t apr_os_sock_put(apr_socket_t **sock, apr_os_sock_t *thesock,
/* XXX IPv6 figure out the family here! */
/* XXX figure out the actual socket type here */
/* *or* just decide that apr_os_sock_put() has to be told the family and type */
- set_socket_vars(*sock, APR_INET, SOCK_STREAM, APR_PROTO_TCP);
+ set_socket_vars(*sock, APR_INET, SOCK_STREAM, 0);
(*sock)->timeout = -1;
}
(*sock)->local_port_unknown = (*sock)->local_interface_unknown = 1;
diff --git a/network_io/win32/sockets.c b/network_io/win32/sockets.c
index 6da7c3a93..e1dabdc07 100644
--- a/network_io/win32/sockets.c
+++ b/network_io/win32/sockets.c
@@ -466,7 +466,7 @@ APR_DECLARE(apr_status_t) apr_os_sock_put(apr_socket_t **sock,
alloc_socket(sock, cont);
/* XXX figure out the actual socket type here */
/* *or* just decide that apr_os_sock_put() has to be told the family and type */
- set_socket_vars(*sock, AF_INET, SOCK_STREAM, APR_PROTO_TCP);
+ set_socket_vars(*sock, AF_INET, SOCK_STREAM, 0);
(*sock)->timeout = -1;
(*sock)->disconnected = 0;
}