r21622: Fix bad merge caught by James.
authorGerald Carter <jerry@samba.org>
Thu, 1 Mar 2007 04:58:52 +0000 (04:58 +0000)
committerGerald Carter <jerry@samba.org>
Thu, 1 Mar 2007 04:58:52 +0000 (04:58 +0000)
source/nsswitch/winbindd_cred_cache.c

index 600409420ae6287b0e3b14455e5a30884dd2db85..d0904002dd96592935e828b7b2e466bded712bc0 100644 (file)
@@ -485,8 +485,6 @@ static NTSTATUS store_memory_creds(struct WINBINDD_MEMORY_CREDS *memcredp, const
 #if !defined(HAVE_MLOCK)
        return NT_STATUS_OK;
 #else
-       int psize = getpagesize();
-
        /* new_entry->nt_hash is the base pointer for the block
           of memory pointed into by new_entry->lm_hash and
           new_entry->pass (if we're storing plaintext). */
@@ -506,11 +504,6 @@ static NTSTATUS store_memory_creds(struct WINBINDD_MEMORY_CREDS *memcredp, const
        memcredp->nt_hash = SMB_MEMALIGN_ARRAY(unsigned char, 
                                               getpagesize(), memcredp->len);
 #endif
-
-       /* On non-linux platforms, mlock()'d memory must be aligned */
-
-       memcredp->nt_hash = SMB_MEMALIGN_ARRAY(unsigned char, psize, 
-                                              memcredp->len);
        if (!memcredp->nt_hash) {
                return NT_STATUS_NO_MEMORY;
        }