diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-24 13:19:00 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-24 13:19:00 +0000 |
commit | f4e485117a0dea627addfb8518e6517c7104fd9e (patch) | |
tree | 6caaaa42897ddc169de7d23990725cf7af2a6bdb /source4/librpc/rpc/dcerpc_tcp.c | |
parent | 7befc0648e4366980b7efdf31cc946ea11de5101 (diff) | |
download | samba-f4e485117a0dea627addfb8518e6517c7104fd9e.tar.gz samba-f4e485117a0dea627addfb8518e6517c7104fd9e.tar.bz2 samba-f4e485117a0dea627addfb8518e6517c7104fd9e.zip |
* fixed byte order in epmapper parsing
* allow rpc transport to be specified on command line in smbtorture
(This used to be commit 8a82050fd6f45bcdb31c2c365eaed5fc12599e4f)
Diffstat (limited to 'source4/librpc/rpc/dcerpc_tcp.c')
-rw-r--r-- | source4/librpc/rpc/dcerpc_tcp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc_tcp.c b/source4/librpc/rpc/dcerpc_tcp.c index 785ef46423..ec94baf583 100644 --- a/source4/librpc/rpc/dcerpc_tcp.c +++ b/source4/librpc/rpc/dcerpc_tcp.c @@ -155,6 +155,10 @@ NTSTATUS dcerpc_pipe_open_tcp(struct dcerpc_pipe **p, int fd; struct in_addr addr; + if (port == 0) { + port = 135; + } + addr.s_addr = interpret_addr(server); if (addr.s_addr == 0) { return NT_STATUS_BAD_NETWORK_NAME; @@ -195,6 +199,7 @@ NTSTATUS dcerpc_pipe_open_tcp(struct dcerpc_pipe **p, if (!NT_STATUS_IS_OK(status)) { dcerpc_pipe_close(*p); + return status; } return NT_STATUS_OK; |