From 393bede7db6af546431cd5255e465b7b7b0e7c81 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 7 Mar 2001 23:59:13 +0000 Subject: Sync up handle creation with 2.2 branch. We can now join AS/U domains and authenticate against them. Big/little endian issues fixed. Jeremy. (This used to be commit 0e6a34510ed598eaec7fe71a9c91fda528a4675c) --- source3/lib/util_list.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'source3/lib/util_list.c') diff --git a/source3/lib/util_list.c b/source3/lib/util_list.c index ea262b5db5..19354c8784 100644 --- a/source3/lib/util_list.c +++ b/source3/lib/util_list.c @@ -193,8 +193,6 @@ static void* generic_list_locate (GENERIC_LIST *l, void *search, *************************************************************/ BOOL copy_policy_hnd (POLICY_HND *dest, const POLICY_HND *src) { - int i; - /* if we have no destination, return an error */ if (dest == NULL) return False; @@ -205,14 +203,11 @@ BOOL copy_policy_hnd (POLICY_HND *dest, const POLICY_HND *src) { /* if POLICY_HND internals ever changes, this will need to be fixed */ - memset (dest->data, 0, POLICY_HND_SIZE); + ZERO_STRUCTP(dest); return True; } - /* copy the src handle to the dest */ - for (i=0; idata[i] = src->data[i]; - + *dest = *src; return True; } @@ -240,7 +235,7 @@ BOOL compare_rpc_hnd_node(const RPC_HND_NODE *x, /* if the POLICY_HND field(s) are ever changed, this will need to be updated. Probably should be a set of support function for dealing with POLICY_HND */ - return (memcmp(x->hnd.data, y->hnd.data, POLICY_HND_SIZE) == 0); + return (memcmp(&x->hnd, &y->hnd, sizeof(POLICY_HND)) == 0); } /*************************************************************** -- cgit