Move policy_handle_is_valid out of parse_lsa.c
authorGünther Deschner <gd@samba.org>
Sun, 17 Feb 2008 02:10:21 +0000 (03:10 +0100)
committerGünther Deschner <gd@samba.org>
Sun, 17 Feb 2008 02:10:21 +0000 (03:10 +0100)
Guenther

source/rpc_parse/parse_lsa.c
source/rpc_parse/parse_misc.c

index 80e90a82657af95ceaf3abe83506e658b0296de5..3d65b9ca3ba10f921d3a8cae404600135bd09def 100644 (file)
@@ -1206,15 +1206,3 @@ bool lsa_io_r_lookup_names4(const char *desc, LSA_R_LOOKUP_NAMES4 *out, prs_stru
 
        return True;
 }
-
-/*******************************************************************
- Reads or writes an LUID_ATTR structure.
-********************************************************************/
-
-bool policy_handle_is_valid(const POLICY_HND *hnd)
-{
-       POLICY_HND zero_pol;
-
-       ZERO_STRUCT(zero_pol);
-       return ((memcmp(&zero_pol, hnd, sizeof(POLICY_HND)) == 0) ? False : True );
-}
index 9e1937ea328a18329ddcd8cf118143c67e9c2088..418f857df88a4596752dcac969ab940fd5069415 100644 (file)
@@ -1859,4 +1859,14 @@ uint32 str_len_uni(UNISTR *source)
        return i;
 }
 
+/*******************************************************************
+ Verifies policy handle
+********************************************************************/
 
+bool policy_handle_is_valid(const POLICY_HND *hnd)
+{
+       POLICY_HND zero_pol;
+
+       ZERO_STRUCT(zero_pol);
+       return ((memcmp(&zero_pol, hnd, sizeof(POLICY_HND)) == 0) ? false : true );
+}