diff options
Diffstat (limited to 'libbb/xconnect.c')
-rw-r--r-- | libbb/xconnect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xconnect.c b/libbb/xconnect.c index 1c8bb2b73..2a96e03dc 100644 --- a/libbb/xconnect.c +++ b/libbb/xconnect.c | |||
@@ -171,7 +171,7 @@ IF_NOT_FEATURE_IPV6(sa_family_t af = AF_INET;) | |||
171 | const char *cp; | 171 | const char *cp; |
172 | struct addrinfo hint; | 172 | struct addrinfo hint; |
173 | 173 | ||
174 | if (ENABLE_FEATURE_UNIX_LOCAL && strncmp(host, "local:", 6) == 0) { | 174 | if (ENABLE_FEATURE_UNIX_LOCAL && is_prefixed_with(host, "local:")) { |
175 | struct sockaddr_un *sun; | 175 | struct sockaddr_un *sun; |
176 | 176 | ||
177 | r = xzalloc(LSA_LEN_SIZE + sizeof(struct sockaddr_un)); | 177 | r = xzalloc(LSA_LEN_SIZE + sizeof(struct sockaddr_un)); |