s3-libsmb: Don't duplicate kerberos service tickets.
[kai/samba.git] / nsswitch / pam_winbind.c
index 7d5b70e1bdf56f80217a74008595b4ced6c71c6b..04977267c970857409c650957c6538b4c82b3c11 100644 (file)
@@ -10,6 +10,8 @@
    <sopwith@redhat.com> (see copyright below for full details)
 */
 
+#define UID_WRAPPER_NOT_REPLACE
+
 #include "pam_winbind.h"
 
 static int wbc_error_to_pam_error(wbcErr status)
@@ -536,7 +538,7 @@ static int _pam_winbind_init_context(pam_handle_t *pamh,
        textdomain_init();
 #endif
 
-       r = TALLOC_ZERO_P(NULL, struct pwb_context);
+       r = talloc_zero(NULL, struct pwb_context);
        if (!r) {
                return PAM_BUF_ERR;
        }