summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-12-01 19:03:25 +0100
committerVolker Lendecke <vl@sernet.de>2007-12-05 13:45:12 +0100
commit825dddff8fe42d6f460ec06ad81374e382f0a4fc (patch)
treee7b7ef56fa66b05da8693909bdf7dc7b9a907866 /source3
parent222cd323cae37e87ab60dec5fa3ac2a3da7d36aa (diff)
downloadsamba-825dddff8fe42d6f460ec06ad81374e382f0a4fc.tar.gz
samba-825dddff8fe42d6f460ec06ad81374e382f0a4fc.tar.bz2
samba-825dddff8fe42d6f460ec06ad81374e382f0a4fc.zip
Reformatting
(This used to be commit 719941605333a453c4219aed45780862c94a5c7c)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/nttrans.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index bf29a2341d..139163cb87 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -1321,26 +1321,29 @@ static void call_nt_transact_create(connection_struct *conn,
#endif
/* Ensure the data_len is correct for the sd and ea values given. */
- if ((ea_len + sd_len > data_count) ||
- (ea_len > data_count) || (sd_len > data_count) ||
- (ea_len + sd_len < ea_len) || (ea_len + sd_len < sd_len)) {
- DEBUG(10,("call_nt_transact_create - ea_len = %u, sd_len = %u, data_count = %u\n",
- (unsigned int)ea_len, (unsigned int)sd_len, (unsigned int)data_count ));
+ if ((ea_len + sd_len > data_count)
+ || (ea_len > data_count) || (sd_len > data_count)
+ || (ea_len + sd_len < ea_len) || (ea_len + sd_len < sd_len)) {
+ DEBUG(10, ("call_nt_transact_create - ea_len = %u, sd_len = "
+ "%u, data_count = %u\n", (unsigned int)ea_len,
+ (unsigned int)sd_len, (unsigned int)data_count));
reply_nterror(req, NT_STATUS_INVALID_PARAMETER);
return;
}
if (ea_len) {
if (!lp_ea_support(SNUM(conn))) {
- DEBUG(10,("call_nt_transact_create - ea_len = %u but EA's not supported.\n",
- (unsigned int)ea_len ));
+ DEBUG(10, ("call_nt_transact_create - ea_len = %u but "
+ "EA's not supported.\n",
+ (unsigned int)ea_len));
reply_nterror(req, NT_STATUS_EAS_NOT_SUPPORTED);
return;
}
if (ea_len < 10) {
- DEBUG(10,("call_nt_transact_create - ea_len = %u - too small (should be more than 10)\n",
- (unsigned int)ea_len ));
+ DEBUG(10,("call_nt_transact_create - ea_len = %u - "
+ "too small (should be more than 10)\n",
+ (unsigned int)ea_len ));
reply_nterror(req, NT_STATUS_INVALID_PARAMETER);
return;
}