summaryrefslogtreecommitdiff
path: root/source3/client/clientutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/client/clientutil.c')
-rw-r--r--source3/client/clientutil.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/client/clientutil.c b/source3/client/clientutil.c
index 9919f0a2d3..47cb78f0ce 100644
--- a/source3/client/clientutil.c
+++ b/source3/client/clientutil.c
@@ -683,12 +683,13 @@ BOOL cli_send_login(char *inbuf,char *outbuf,BOOL start_session,BOOL use_setup)
uid = SVAL(inbuf,smb_uid);
}
- if (SVAL(inbuf, smb_vwv2) & 1)
- DEBUG(1,("connected as guest "));
- if (sec_mode & 1)
+ if (sec_mode & 1) {
+ if (SVAL(inbuf, smb_vwv2) & 1)
+ DEBUG(1,("connected as guest "));
DEBUG(1,("security=user\n"));
- else
+ } else {
DEBUG(1,("security=share\n"));
+ }
/* now we've got a connection - send a tcon message */
bzero(outbuf,smb_size);