libwbclient: Make wbcAuthenticateUserEx not use talloc
authorVolker Lendecke <vl@samba.org>
Sun, 4 Apr 2010 09:58:04 +0000 (11:58 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 19 Apr 2010 12:27:23 +0000 (14:27 +0200)
nsswitch/libwbclient/wbc_pam.c

index 892ccb7aa2e7bcc89ab5ac90a957fa34a71caff8..e40d55e9697ea583fcf23132018cd2722435e872 100644 (file)
@@ -468,7 +468,8 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
                if (params->password.response.nt_length > sizeof(request.data.auth_crap.nt_resp)) {
                        request.flags |= WBFLAG_BIG_NTLMV2_BLOB;
                        request.extra_len = params->password.response.nt_length;
-                       request.extra_data.data = talloc_zero_array(NULL, char, request.extra_len);
+                       request.extra_data.data = (char *)malloc(
+                               request.extra_len);
                        if (request.extra_data.data == NULL) {
                                wbc_status = WBC_ERR_NO_MEMORY;
                                BAIL_ON_WBC_ERROR(wbc_status);
@@ -520,7 +521,7 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
 done:
        winbindd_free_response(&response);
 
-       talloc_free(request.extra_data.data);
+       free(request.extra_data.data);
 
        return wbc_status;
 }