diff options
-rw-r--r-- | source3/lib/util_sock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index a55ef1a92e..760ceceede 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -1016,6 +1016,12 @@ char *get_socket_name(int fd) pstrcpy(name_buf,"UNKNOWN"); } } + + alpha_strcpy(name_buf, name_buf, "_-.", sizeof(name_buf)); + if (strstr(name_buf,"..")) { + pstrcpy(name_buf, "UNKNOWN"); + } + return name_buf; } |