summaryrefslogtreecommitdiff
path: root/ext/socket/ancdata.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-18 17:53:20 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-18 17:53:20 +0000
commit3006e5ea78a41950e57c8f568fccf26c95ecc1e6 (patch)
tree606734935399855e165e3eeb18fbfa6ef1af6311 /ext/socket/ancdata.c
parent1ca597236fda4c8c237f84956c77bb95f2b05df5 (diff)
* ext/socket/ancdata.c (bsock_recvmsg_internal): stretch the buffer size
only when vmaxdatlen is nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/ancdata.c')
-rw-r--r--ext/socket/ancdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/ancdata.c b/ext/socket/ancdata.c
index 1a6b509..93615f2 100644
--- a/ext/socket/ancdata.c
+++ b/ext/socket/ancdata.c
@@ -1571,7 +1571,7 @@ bsock_recvmsg_internal(VALUE sock,
goto retry;
}
#else
- if (grow_buffer && errno == EMSGSIZE)
+ if (NIL_P(vmaxdatlen) && grow_buffer && errno == EMSGSIZE)
ss = (ssize_t)iov.iov_len;
else
#endif