]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/necp.c
xnu-6153.121.1.tar.gz
[apple/xnu.git] / bsd / net / necp.c
index d410484cac3196610fc9dfed59718cf23b5e9c6e..c73dadf89b2d019969640902efcae3a1af3f00c8 100644 (file)
@@ -7276,10 +7276,10 @@ necp_socket_fillout_info_locked(struct inpcb *inp, struct sockaddr *override_loc
                                necp_get_parent_cred_result(NULL, info);
                        }
                }
+       }
 
-               if (necp_kernel_socket_policies_condition_mask & NECP_KERNEL_CONDITION_PLATFORM_BINARY) {
-                       info->is_platform_binary = csproc_get_platform_binary(current_proc()) ? true : false;
-               }
+       if (necp_kernel_socket_policies_condition_mask & NECP_KERNEL_CONDITION_PLATFORM_BINARY) {
+               info->is_platform_binary = csproc_get_platform_binary(current_proc()) ? true : false;
        }
 
        if (necp_kernel_socket_policies_condition_mask & NECP_KERNEL_CONDITION_ACCOUNT_ID && inp->inp_necp_attributes.inp_account != NULL) {