summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-30 22:08:17 +0200
committerVolker Lendecke <vl@samba.org>2008-04-14 14:37:39 +0200
commitae4159f0f7160ffd4ebcc0a2a79681d873e3e4f4 (patch)
tree7c28e4f5eb4d3a15c4532660182a036ce355469a /source3/smbd
parent13a60a40057da63e21dad5e4076fb1158848738f (diff)
downloadsamba-ae4159f0f7160ffd4ebcc0a2a79681d873e3e4f4.tar.gz
samba-ae4159f0f7160ffd4ebcc0a2a79681d873e3e4f4.tar.bz2
samba-ae4159f0f7160ffd4ebcc0a2a79681d873e3e4f4.zip
Remove two pointless else branches
(This used to be commit ed343114cd0844a7fd14b45f95c0f43a6d172a42)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/nttrans.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index e8dae705b0..ae7bd8b7b7 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -498,11 +498,10 @@ void reply_ntcreate_and_X(struct smb_request *req)
do_ntcreate_pipe_open(conn, req);
END_PROFILE(SMBntcreateX);
return;
- } else {
- reply_doserror(req, ERRDOS, ERRnoaccess);
- END_PROFILE(SMBntcreateX);
- return;
}
+ reply_doserror(req, ERRDOS, ERRnoaccess);
+ END_PROFILE(SMBntcreateX);
+ return;
}
oplock_request = (flags & REQUEST_OPLOCK) ? EXCLUSIVE_OPLOCK : 0;
@@ -871,10 +870,9 @@ static void call_nt_transact_create(connection_struct *conn,
ppparams, parameter_count,
ppdata, data_count);
return;
- } else {
- reply_doserror(req, ERRDOS, ERRnoaccess);
- return;
}
+ reply_doserror(req, ERRDOS, ERRnoaccess);
+ return;
}
/*