summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-06-03 00:53:07 +0000
committerJeremy Allison <jra@samba.org>2000-06-03 00:53:07 +0000
commit5a5540f87a89224397d791f4fe8093be214e1f15 (patch)
tree629c04e0026f5e90eca83858bc1e3f0aa8964ea2 /source3/smbd
parent0cc138993573a8337c335563ba3c5936d260f298 (diff)
downloadsamba-5a5540f87a89224397d791f4fe8093be214e1f15.tar.gz
samba-5a5540f87a89224397d791f4fe8093be214e1f15.tar.bz2
samba-5a5540f87a89224397d791f4fe8093be214e1f15.zip
rpc_client/cli_lsarpc.c: Removed unused variable.
rpc_server/srv_spoolss_nt.c: Fixed more memory leaks. smbd/nttrans.c: Fixed shadow variable problem. Jeremy. (This used to be commit f0a7540831181d3a47e7f8ce8be55a36a2f2aba1)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/nttrans.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 68844f2bca..e3874e1b3e 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -1838,7 +1838,7 @@ static int call_nt_transact_query_security_desc(connection_struct *conn,
char *data = *ppdata;
prs_struct pd;
SEC_DESC *psd = NULL;
- size_t sec_desc_size;
+ size_t sd_size;
files_struct *fsp = file_fsp(params,0);
@@ -1855,14 +1855,14 @@ static int call_nt_transact_query_security_desc(connection_struct *conn,
* Get the permissions to return.
*/
- if((sec_desc_size = get_nt_acl(fsp, &psd)) == 0)
+ if((sd_size = get_nt_acl(fsp, &psd)) == 0)
return(UNIXERROR(ERRDOS,ERRnoaccess));
- DEBUG(3,("call_nt_transact_query_security_desc: sec_desc_size = %d.\n",(int)sec_desc_size));
+ DEBUG(3,("call_nt_transact_query_security_desc: sd_size = %d.\n",(int)sd_size));
- SIVAL(params,0,(uint32)sec_desc_size);
+ SIVAL(params,0,(uint32)sd_size);
- if(max_data_count < sec_desc_size) {
+ if(max_data_count < sd_size) {
free_sec_desc(&psd);
@@ -1875,13 +1875,13 @@ static int call_nt_transact_query_security_desc(connection_struct *conn,
* Allocate the data we will point this at.
*/
- data = *ppdata = Realloc(*ppdata, sec_desc_size);
+ data = *ppdata = Realloc(*ppdata, sd_size);
if(data == NULL) {
free_sec_desc(&psd);
return(ERROR(ERRDOS,ERRnomem));
}
- memset(data, '\0', sec_desc_size);
+ memset(data, '\0', sd_size);
/*
* Init the parse struct we will marshall into.
@@ -1894,7 +1894,7 @@ static int call_nt_transact_query_security_desc(connection_struct *conn,
* allocated.
*/
- prs_give_memory( &pd, data, (uint32)sec_desc_size, False);
+ prs_give_memory( &pd, data, (uint32)sd_size, False);
/*
* Finally, linearize into the outgoing buffer.
@@ -1916,7 +1916,7 @@ security descriptor.\n"));
free_sec_desc(&psd);
- send_nt_replies(inbuf, outbuf, bufsize, 0, params, 4, data, (int)sec_desc_size);
+ send_nt_replies(inbuf, outbuf, bufsize, 0, params, 4, data, (int)sd_size);
return -1;
}