mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* ext/socket/socket.c (unix_peeraddr): wrong syscall name in error
message for #peeraddr. a patch from Sam Roberts <sroberts at uniserve.com>. [ruby-core:10366] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9c79e14614
commit
2551d9b534
3 changed files with 10 additions and 4 deletions
|
@ -2166,7 +2166,7 @@ unix_peeraddr(VALUE sock)
|
|||
GetOpenFile(sock, fptr);
|
||||
|
||||
if (getpeername(fptr->fd, (struct sockaddr*)&addr, &len) < 0)
|
||||
rb_sys_fail("getsockname(2)");
|
||||
rb_sys_fail("getpeername(2)");
|
||||
return unixaddr(&addr, len);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue