Use NULL instead of 0
authorVolker Lendecke <vl@samba.org>
Tue, 1 Jan 2008 11:55:29 +0000 (12:55 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 1 Jan 2008 12:13:31 +0000 (13:13 +0100)
"struct security_descriptor" has pointers, not integers inside

source/smbd/open.c

index d3ba9e076c651b24e49563a2d6834ee37c9f0ef2..b6e6adde8a18f661ba271ec1594a732eacbf99d3 100644 (file)
@@ -2606,16 +2606,16 @@ NTSTATUS create_file_unixpath(connection_struct *conn,
                uint32_t sec_info_sent = ALL_SECURITY_INFORMATION;
                uint32_t saved_access_mask = fsp->access_mask;
 
-               if (sd->owner_sid==0) {
+               if (sd->owner_sid == NULL) {
                        sec_info_sent &= ~OWNER_SECURITY_INFORMATION;
                }
-               if (sd->group_sid==0) {
+               if (sd->group_sid == NULL) {
                        sec_info_sent &= ~GROUP_SECURITY_INFORMATION;
                }
-               if (sd->sacl==0) {
+               if (sd->sacl == NULL) {
                        sec_info_sent &= ~SACL_SECURITY_INFORMATION;
                }
-               if (sd->dacl==0) {
+               if (sd->dacl == NULL) {
                        sec_info_sent &= ~DACL_SECURITY_INFORMATION;
                }