winbindd: Fix crash when taking profiles
authorVolker Lendecke <vl@samba.org>
Mon, 12 Nov 2018 15:21:55 +0000 (16:21 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 12 Nov 2018 19:20:52 +0000 (20:20 +0100)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13629
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Björn Baumbach <bbaumbach@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Nov 12 20:20:52 CET 2018 on sn-devel-144

source3/winbindd/winbindd.c

index 86c3cd952442736453016113f6b4d73c1e264dd5..d2c005bc8ff7b264fcec80fe2f620156d20bae1c 100644 (file)
@@ -1065,7 +1065,8 @@ static void winbind_client_processed(struct tevent_req *req)
                DBG_ERR("request took %u.%.6u seconds\n",
                        (unsigned)diff.tv_sec, (unsigned)diff.tv_usec);
 
-               str = tevent_req_profile_string(profile, talloc_tos(), 0, depth);
+               str = tevent_req_profile_string(
+                       talloc_tos(), profile, 0, depth);
                if (str != NULL) {
                        /* No "\n", already contained in "str" */
                        DEBUGADD(0, ("%s", str));