mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
librpc: Simplify ndr_size_dom_sid28()
all_zero() treats a NULL pointer as true. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
c3855fb682
commit
2ae7ad97ab
@ -129,8 +129,6 @@ size_t ndr_size_dom_sid(const struct dom_sid *sid, int flags)
|
||||
|
||||
size_t ndr_size_dom_sid28(const struct dom_sid *sid, int flags)
|
||||
{
|
||||
if (!sid) return 0;
|
||||
|
||||
if (all_zero((const uint8_t *)sid, sizeof(struct dom_sid))) {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user