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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user