1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-12 12:23:50 +03:00

Remove tiny code duplication

ndr_size_security_descriptor does the same as sec_desc_size
This commit is contained in:
Volker Lendecke
2007-12-29 23:00:49 +01:00
parent 387936ec39
commit bc3bd7a8e7
13 changed files with 22 additions and 47 deletions

View File

@@ -435,7 +435,7 @@ bool smb_io_relsecdesc(const char *desc, RPC_BUFFER *buffer, int depth, SEC_DESC
}
if (*secdesc != NULL) {
buffer->string_at_end -= sec_desc_size(*secdesc);
buffer->string_at_end -= ndr_size_security_descriptor(*secdesc, 0);
if(!prs_set_offset(ps, buffer->string_at_end))
return False;