Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

alloc 256 bytes for sockopt

  • Loading branch information...
commit d2205d2d2d975be256816d37fc25e29e87c752d4 1 parent 9100281
@coderrr authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ext/rubymain.cpp
View
2  ext/rubymain.cpp
@@ -505,7 +505,7 @@ static VALUE t_get_sock_opt (VALUE self, VALUE signature, VALUE lev, VALUE optna
{
int fd = evma_get_file_descriptor (NUM2ULONG (signature));
int level = NUM2INT(lev), option = NUM2INT(optname);
- socklen_t len;
+ socklen_t len = 256;
char *buf = ALLOCA_N(char, len);
if (getsockopt(fd, level, option, buf, &len) < 0)
Please sign in to comment.
Something went wrong with that request. Please try again.