diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-07-05 04:44:09 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-07-05 04:44:09 +0000 |
commit | f6f9e95dd9254c6aad19d4fa1ff891bfa33070b6 (patch) | |
tree | 4defe5bad9162241b9ae72d20a129b3343c222d2 | |
parent | 3b9eb528f56b325399e5a4588242bb6d9f9226e2 (diff) | |
download | samba-f6f9e95dd9254c6aad19d4fa1ff891bfa33070b6.tar.gz samba-f6f9e95dd9254c6aad19d4fa1ff891bfa33070b6.tar.xz samba-f6f9e95dd9254c6aad19d4fa1ff891bfa33070b6.zip |
use alpha_strcpy on DNS names
-rw-r--r-- | source/lib/util_sock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c index a55ef1a92e8..760ceceede8 100644 --- a/source/lib/util_sock.c +++ b/source/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; } |