summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-03-31 13:25:45 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-03-31 13:25:45 +0000
commita86037b7ef351b5553d93d5e716ebd5ad6a976b6 (patch)
tree8243f3402ca6ebb5546e4d2a78ac99b45b445091 /include
parent9ae2f07ef9ab95b09a015e96bc4a01698d0c622d (diff)
downloadlibapr-a86037b7ef351b5553d93d5e716ebd5ad6a976b6.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: http://svn.apache.org/repos/asf/apr/apr/trunk@61415 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-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;