diff options
author | Jeremy Allison <jra@samba.org> | 1997-12-20 14:36:11 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-12-20 14:36:11 +0000 |
commit | be71d43585cf4b42efff7995dbf061fddd6077f5 (patch) | |
tree | 53aa1a15f742d51dbfa51bcee50c7e310f7e3ad1 /source3/client/clientutil.c | |
parent | d57c055478a34b9c4a0fc7ba90d20f510d0df797 (diff) | |
download | samba-be71d43585cf4b42efff7995dbf061fddd6077f5.tar.gz samba-be71d43585cf4b42efff7995dbf061fddd6077f5.tar.bz2 samba-be71d43585cf4b42efff7995dbf061fddd6077f5.zip |
client.c:
clientgen.c:
clientutil.c:
clitar.c: Changed usage of receive_smb to new function client_receive_smb
except for one use of receive_smb in client.c. This is the
receive_smb used to discard packets received whilst in a
keyboard wait state.
util.c: Created new function client_receive_smb that ignores session
keepalives just as the old receive_smb used to do. Created
internal function read_smb_length_return_keepalive that is
used internally by the changed receive_smb call.
Changed read_smb_len to not use an internal buffer - it is
never called with a null buffer so such code is redundant.
Jeremy.
(This used to be commit 1084fb46821cb96702da35439da4a8df9d255698)
Diffstat (limited to 'source3/client/clientutil.c')
-rw-r--r-- | source3/client/clientutil.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/client/clientutil.c b/source3/client/clientutil.c index ca90845738..9ce2c80d84 100644 --- a/source3/client/clientutil.c +++ b/source3/client/clientutil.c @@ -132,7 +132,7 @@ BOOL cli_receive_trans_response(char *inbuf,int trans, *data_len = *param_len = 0; - receive_smb(Client,inbuf,CLIENT_TIMEOUT); + client_receive_smb(Client,inbuf,CLIENT_TIMEOUT); show_msg(inbuf); /* sanity check */ @@ -175,7 +175,7 @@ BOOL cli_receive_trans_response(char *inbuf,int trans, if (total_data <= *data_len && total_param <= *param_len) break; - receive_smb(Client,inbuf,CLIENT_TIMEOUT); + client_receive_smb(Client,inbuf,CLIENT_TIMEOUT); show_msg(inbuf); /* sanity check */ @@ -258,7 +258,7 @@ BOOL cli_send_trans_request(char *outbuf,int trans, if (this_ldata < ldata || this_lparam < lparam) { /* receive interim response */ - if (!receive_smb(Client,inbuf,SHORT_TIMEOUT) || CVAL(inbuf,smb_rcls) != 0) + if (!client_receive_smb(Client,inbuf,SHORT_TIMEOUT) || CVAL(inbuf,smb_rcls) != 0) { DEBUG(0,("%s request failed (%s)\n", trans==SMBtrans?"SMBtrans":"SMBtrans2", smb_errstr(inbuf))); @@ -340,7 +340,7 @@ BOOL cli_send_session_request(char *inbuf,char *outbuf) send_smb(Client,outbuf); DEBUG(5,("Sent session request\n")); - receive_smb(Client,inbuf,CLIENT_TIMEOUT); + client_receive_smb(Client,inbuf,CLIENT_TIMEOUT); if (CVAL(inbuf,0) == 0x84) /* C. Hoch 9/14/95 Start */ { @@ -500,7 +500,7 @@ BOOL cli_send_login(char *inbuf,char *outbuf,BOOL start_session,BOOL use_setup) CVAL(smb_buf(outbuf),0) = 2; send_smb(Client,outbuf); - receive_smb(Client,inbuf,CLIENT_TIMEOUT); + client_receive_smb(Client,inbuf,CLIENT_TIMEOUT); show_msg(inbuf); @@ -644,7 +644,7 @@ BOOL cli_send_login(char *inbuf,char *outbuf,BOOL start_session,BOOL use_setup) } send_smb(Client,outbuf); - receive_smb(Client,inbuf,CLIENT_TIMEOUT); + client_receive_smb(Client,inbuf,CLIENT_TIMEOUT); show_msg(inbuf); @@ -759,7 +759,7 @@ BOOL cli_send_login(char *inbuf,char *outbuf,BOOL start_session,BOOL use_setup) } send_smb(Client,outbuf); - receive_smb(Client,inbuf,CLIENT_TIMEOUT); + client_receive_smb(Client,inbuf,CLIENT_TIMEOUT); /* trying again with a blank password */ if (CVAL(inbuf,smb_rcls) != 0 && @@ -827,7 +827,7 @@ void cli_send_logout(void ) cli_setup_pkt(outbuf); send_smb(Client,outbuf); - receive_smb(Client,inbuf,SHORT_TIMEOUT); + client_receive_smb(Client,inbuf,SHORT_TIMEOUT); if (CVAL(inbuf,smb_rcls) != 0) { @@ -946,7 +946,7 @@ BOOL cli_reopen_connection(char *inbuf,char *outbuf) cli_setup_pkt(outbuf); send_smb(Client,outbuf); - receive_smb(Client,inbuf,SHORT_TIMEOUT); + client_receive_smb(Client,inbuf,SHORT_TIMEOUT); close_sockets(); if (!cli_open_sockets(0)) return(False); |