libwbclient: wbc_create_logon_info is always called with mem_ctx==NULL
authorVolker Lendecke <vl@samba.org>
Sat, 6 Feb 2010 15:56:29 +0000 (16:56 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 7 Feb 2010 11:29:24 +0000 (12:29 +0100)
nsswitch/libwbclient/wbc_pam.c

index c9034ce62d5c8bf2cac504f55d1fa01425b8070c..fdb297fae3b99ce0e2f73a56610ece00f9cb119c 100644 (file)
@@ -255,14 +255,13 @@ done:
        return wbc_status;
 }
 
-static wbcErr wbc_create_logon_info(TALLOC_CTX *mem_ctx,
-                                   struct winbindd_response *resp,
+static wbcErr wbc_create_logon_info(struct winbindd_response *resp,
                                    struct wbcLogonUserInfo **_i)
 {
        wbcErr wbc_status = WBC_ERR_SUCCESS;
        struct wbcLogonUserInfo *i;
 
-       i = talloc_zero(mem_ctx, struct wbcLogonUserInfo);
+       i = talloc_zero(NULL, struct wbcLogonUserInfo);
        BAIL_ON_PTR_ERROR(i, wbc_status);
 
        wbc_status = wbc_create_auth_info(i, resp, &i->info);
@@ -1083,8 +1082,7 @@ wbcErr wbcLogonUser(const struct wbcLogonUserParams *params,
        BAIL_ON_WBC_ERROR(wbc_status);
 
        if (info) {
-               wbc_status = wbc_create_logon_info(NULL,
-                                                  &response,
+               wbc_status = wbc_create_logon_info(&response,
                                                   info);
                BAIL_ON_WBC_ERROR(wbc_status);
        }