summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/ntvfs/ipc/vfs_ipc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/ntvfs/ipc/vfs_ipc.c b/source4/ntvfs/ipc/vfs_ipc.c
index 4f143986fc..972de2723c 100644
--- a/source4/ntvfs/ipc/vfs_ipc.c
+++ b/source4/ntvfs/ipc/vfs_ipc.c
@@ -228,7 +228,9 @@ static void ipc_open_done(struct tevent_req *subreq);
static NTSTATUS validate_pipename(const char *name)
{
while (*name) {
- if (!isalnum(*name)) return NT_STATUS_INVALID_PARAMETER;
+ if (!isalnum(*name) && *name != '_') {
+ return NT_STATUS_INVALID_PARAMETER;
+ }
name++;
}
return NT_STATUS_OK;