|
|
@ -793,7 +793,7 @@ int _open_unix_client(const char *server_path, const char *file, const char *fun |
|
|
|
|
|
|
|
|
|
|
|
if (likely(server_path)) { |
|
|
|
if (likely(server_path)) { |
|
|
|
len = strlen(server_path); |
|
|
|
len = strlen(server_path); |
|
|
|
if (unlikely(len < 1 || len > UNIX_PATH_MAX)) { |
|
|
|
if (unlikely(len < 1 || len >= UNIX_PATH_MAX)) { |
|
|
|
LOGERR("Invalid server path length %d in open_unix_client", len); |
|
|
|
LOGERR("Invalid server path length %d in open_unix_client", len); |
|
|
|
goto out; |
|
|
|
goto out; |
|
|
|
} |
|
|
|
} |
|
|
|