summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2022-08-31 17:35:03 +0200
committerJeremy Allison <jra@samba.org>2022-09-07 18:40:28 +0000
commit2ae7ad97ab2837df96a979073c7462b689ac0038 (patch)
tree7e6164fa797b64a4d32210486153a232d45a374e /librpc
parentc3855fb6823ca49189659663232bfc380e197a7c (diff)
downloadsamba-2ae7ad97ab2837df96a979073c7462b689ac0038.tar.gz
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>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/ndr/ndr_sec_helper.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/librpc/ndr/ndr_sec_helper.c b/librpc/ndr/ndr_sec_helper.c
index 3adb46f5b9c..eb0171a504d 100644
--- a/librpc/ndr/ndr_sec_helper.c
+++ b/librpc/ndr/ndr_sec_helper.c
@@ -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;
}