1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-07 20: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

@@ -144,7 +144,7 @@ SEC_DESC *get_share_security( TALLOC_CTX *ctx, const char *servicename,
}
if (psd)
*psize = sec_desc_size(psd);
*psize = ndr_size_security_descriptor(psd, 0);
return psd;
}