]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
rpc_server: tstream_npa_connect_recv() returns errno into sys_errno
authorVolker Lendecke <vl@samba.org>
Tue, 9 Feb 2021 17:36:56 +0000 (18:36 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 6 Apr 2021 22:29:33 +0000 (22:29 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/rpc_ncacn_np.c

index 8cd84fee8b4fc4ab7700898709c61ca8a960959b..7669d06cdd03d164c8c40cfe11a4e7980eb21845 100644 (file)
@@ -1046,7 +1046,7 @@ static struct np_proxy_state *make_external_rpc_pipe_p(TALLOC_CTX *mem_ctx,
        TALLOC_FREE(subreq);
        if (ret != 0) {
                int l = 1;
-               if (errno == ENOENT) {
+               if (sys_errno == ENOENT) {
                        l = 2;
                }
                DEBUG(l, ("tstream_npa_connect_recv  to %s for pipe %s and "