summaryrefslogtreecommitdiff
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index b50747a5e1b..0f6f9e8a03d 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -1063,7 +1063,7 @@ ipaddr(struct sockaddr *sockaddr, int norevlookup)
char hbuf[1024], pbuf[1024];
char *name;
- name = family_to_str(sockaddr->sa_family);
+ name = family_to_str(sockaddr->sa_family, NULL);
if (name)
family = rb_str_new2(name);
else {