diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 2e9731dbc4..a89e8f9104 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -2291,7 +2291,7 @@ sock_s_getnameinfo(argc, argv) hints.ai_family = PF_INET; } #ifdef INET6 - else if (ap, "AF_INET6") == 0) { + else if (strcmp(ap, "AF_INET6") == 0) { hints.ai_family = PF_INET6; } #endif |