diff options
Diffstat (limited to 'ext/socket/ancdata.c')
-rw-r--r-- | ext/socket/ancdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/ancdata.c b/ext/socket/ancdata.c index 1a6b50958c..93615f2766 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 |