diff options
author | Volker Lendecke <vl@samba.org> | 2007-12-29 23:00:49 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2007-12-29 23:13:26 +0100 |
commit | 7cbdb48475b0340154fad60cb4b7cc53dc2bbcfd (patch) | |
tree | c46834dc96c1bd189ab4e37d9afe38a309d14abb /source3/rpc_server | |
parent | 7be5525792a2f4aa19c308afb516ef1fe02b7be2 (diff) | |
download | samba-7cbdb48475b0340154fad60cb4b7cc53dc2bbcfd.tar.gz samba-7cbdb48475b0340154fad60cb4b7cc53dc2bbcfd.tar.bz2 samba-7cbdb48475b0340154fad60cb4b7cc53dc2bbcfd.zip |
Remove tiny code duplication
ndr_size_security_descriptor does the same as sec_desc_size
(This used to be commit bc3bd7a8e7c6e9e27acb195c86abb92c0f53112f)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_srvsvc_nt.c | 2 | ||||
-rw-r--r-- | source3/rpc_server/srv_svcctl_nt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c index 842a28c776..01e5cf2cda 100644 --- a/source3/rpc_server/srv_srvsvc_nt.c +++ b/source3/rpc_server/srv_srvsvc_nt.c @@ -2159,7 +2159,7 @@ WERROR _srv_net_file_query_secdesc(pipes_struct *p, SRV_Q_NET_FILE_QUERY_SECDESC goto error_exit; } - sd_size = sec_desc_size(psd); + sd_size = ndr_size_security_descriptor(psd, 0); r_u->ptr_response = 1; r_u->size_response = sd_size; diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c index 3f5cf03abb..ac45d8bf75 100644 --- a/source3/rpc_server/srv_svcctl_nt.c +++ b/source3/rpc_server/srv_svcctl_nt.c @@ -813,7 +813,7 @@ WERROR _svcctl_query_service_sec( pipes_struct *p, SVCCTL_Q_QUERY_SERVICE_SEC *q if ( !(sec_desc = svcctl_get_secdesc( p->mem_ctx, info->name, get_root_nt_token() )) ) return WERR_NOMEM; - r_u->needed = sec_desc_size( sec_desc ); + r_u->needed = ndr_size_security_descriptor( sec_desc, 0 ); if ( r_u->needed > q_u->buffer_size ) { ZERO_STRUCTP( &r_u->buffer ); |