diff options
author | Andreas Schneider <asn@samba.org> | 2012-07-06 00:01:41 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-07-06 10:00:58 +0200 |
commit | 0b93587b7e3d43b32835bf0b76fe4eebef1d4036 (patch) | |
tree | 8b3772020a2fb21ca254b8e9297d74f436a9f1c5 /source4 | |
parent | 027b913a25a174790740684269c87d9c26cba2bc (diff) | |
download | samba-0b93587b7e3d43b32835bf0b76fe4eebef1d4036.tar.gz samba-0b93587b7e3d43b32835bf0b76fe4eebef1d4036.tar.bz2 samba-0b93587b7e3d43b32835bf0b76fe4eebef1d4036.zip |
s4-libnet: Skip calling lsarpc functions over a wrong pipe.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libnet/libnet_rpc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/libnet/libnet_rpc.c b/source4/libnet/libnet_rpc.c index 8aacfc398a..349e1f8664 100644 --- a/source4/libnet/libnet_rpc.c +++ b/source4/libnet/libnet_rpc.c @@ -573,6 +573,15 @@ static void continue_dci_rpc_connect(struct composite_context *ctx) s->attr.sec_qos = &s->qos; + if (s->lsa_pipe->binding->transport == NCACN_IP_TCP) { + /* + * Skip to creating the actual connection. We can't open a + * policy handle over tcpip. + */ + continue_epm_map_binding_send(c); + return; + } + s->lsa_open_policy.in.attr = &s->attr; s->lsa_open_policy.in.system_name = talloc_asprintf(c, "\\"); if (composite_nomem(s->lsa_open_policy.in.system_name, c)) return; |