]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:server_named_pipe: make sure we use lower case pipe name
authorStefan Metzmacher <metze@samba.org>
Mon, 29 Jun 2015 10:28:03 +0000 (12:28 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 24 Jun 2016 12:09:01 +0000 (14:09 +0200)
This matches what tstream_npa_connect() expects.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
source4/smbd/service_named_pipe.c

index f9907b261ff4d676c82ac7fdb72bdc5d22759770..b75a9faeb756843676352edf70e2676d95d7babb 100644 (file)
@@ -195,7 +195,7 @@ NTSTATUS tstream_setup_named_pipe(TALLOC_CTX *mem_ctx,
        }
 
        /* remember the details about the pipe */
-       pipe_sock->pipe_name    = talloc_strdup(pipe_sock, pipe_name);
+       pipe_sock->pipe_name    = strlower_talloc(pipe_sock, pipe_name);
        if (pipe_sock->pipe_name == NULL) {
                goto fail;
        }