summaryrefslogtreecommitdiff
path: root/include/arch/unix/networkio.h
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2001-03-31 13:25:45 +0000
committerJeff Trawick <trawick@apache.org>2001-03-31 13:25:45 +0000
commit75ed016e9e2a4429b08b1a5a894d13f5ea9f762e (patch)
tree8243f3402ca6ebb5546e4d2a78ac99b45b445091 /include/arch/unix/networkio.h
parentbc9061d5ec93e66bc034015dd7c35a2bebaf7425 (diff)
downloadapr-75ed016e9e2a4429b08b1a5a894d13f5ea9f762e.tar.gz
apr_recvfrom() should only return APR_EOF if recvfrom() returned
zero *AND* this is a stream socket. rc zero from a datagram socket just means that somebody sent you a zero-byte datagram. Remove the minimal parm checking from recvfrom()... better to segfault as with most of the rest of APR. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61415 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/arch/unix/networkio.h')
-rw-r--r--include/arch/unix/networkio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/arch/unix/networkio.h b/include/arch/unix/networkio.h
index 9c6db4edc..af12997f4 100644
--- a/include/arch/unix/networkio.h
+++ b/include/arch/unix/networkio.h
@@ -122,6 +122,7 @@
struct apr_socket_t {
apr_pool_t *cntxt;
int socketdes;
+ int type;
apr_sockaddr_t *local_addr;
apr_sockaddr_t *remote_addr;
apr_interval_time_t timeout;