1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/socket
mame a6ae6a8b17 * ext/socket/ifaddr.c (rsock_getifaddrs): fix possible memory leak.
When a system had no interface, this function used xmalloc for root
  but did not return any reference to it.  This patch fixes it by
  immediately returning an empty array if no interface is found.
  Coverity Scan found this bug.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 12:41:28 +00:00
..
lib
.document
addrinfo.h
ancdata.c * process.c: Remove spaces between SI prefix and unit to follow 2013-09-09 12:33:36 +00:00
basicsocket.c
constants.c
depend
extconf.rb
getaddrinfo.c
getnameinfo.c
ifaddr.c * ext/socket/ifaddr.c (rsock_getifaddrs): fix possible memory leak. 2013-10-02 12:41:28 +00:00
init.c
ipsocket.c
mkconstants.rb * ext/socket/mkconstants.rb: define MSG_FASTOPEN. 2013-09-15 15:48:38 +00:00
option.c
raddrinfo.c
rubysocket.h
socket.c
sockport.h
sockssocket.c
tcpserver.c
tcpsocket.c
udpsocket.c
unixserver.c
unixsocket.c