diff options
author | Volker Lendecke <vl@samba.org> | 2008-11-30 12:30:00 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-11-30 12:31:04 +0100 |
commit | 95873566e3723ce5197b0a7a1689bc9b0b8b9dfd (patch) | |
tree | 036342f2ea8b26a25790e0d779a34c1bbe3da391 /source3/libsmb | |
parent | 88909acb6c462e34750c9b3b1346bec6112be5cd (diff) | |
download | samba-95873566e3723ce5197b0a7a1689bc9b0b8b9dfd.tar.gz samba-95873566e3723ce5197b0a7a1689bc9b0b8b9dfd.tar.bz2 samba-95873566e3723ce5197b0a7a1689bc9b0b8b9dfd.zip |
Do not build the session request if it si not used anyway
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cliconnect.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index b0fdc9920b..8b7ac7d718 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -1397,6 +1397,10 @@ bool cli_session_request(struct cli_state *cli, char *p; int len = 4; + /* 445 doesn't have session request */ + if (cli->port == 445) + return True; + memcpy(&(cli->calling), calling, sizeof(*calling)); memcpy(&(cli->called ), called , sizeof(*called )); @@ -1410,10 +1414,6 @@ bool cli_session_request(struct cli_state *cli, name_mangle(cli->calling.name, p, cli->calling.name_type); len += name_len(p); - /* 445 doesn't have session request */ - if (cli->port == 445) - return True; - /* send a session request (RFC 1002) */ /* setup the packet length * Remove four bytes from the length count, since the length |