Author: jra Date: 2007-09-14 16:50:54 +0000 (Fri, 14 Sep 2007) New Revision: 25163
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25163 Log: Fix wrong ctx passed to talloc_asprintf_append(). Found by Metze's code review (thanks Metze !). Jeremy. Modified: branches/SAMBA_3_2/source/smbd/trans2.c branches/SAMBA_3_2_0/source/smbd/trans2.c Changeset: Modified: branches/SAMBA_3_2/source/smbd/trans2.c =================================================================== --- branches/SAMBA_3_2/source/smbd/trans2.c 2007-09-14 16:12:38 UTC (rev 25162) +++ branches/SAMBA_3_2/source/smbd/trans2.c 2007-09-14 16:50:54 UTC (rev 25163) @@ -4876,7 +4876,7 @@ return NT_STATUS_NO_MEMORY; } } - rel_name = talloc_asprintf_append(ctx, + rel_name = talloc_asprintf_append(rel_name, "%s", link_target); if (!rel_name) { Modified: branches/SAMBA_3_2_0/source/smbd/trans2.c =================================================================== --- branches/SAMBA_3_2_0/source/smbd/trans2.c 2007-09-14 16:12:38 UTC (rev 25162) +++ branches/SAMBA_3_2_0/source/smbd/trans2.c 2007-09-14 16:50:54 UTC (rev 25163) @@ -4829,7 +4829,7 @@ return NT_STATUS_NO_MEMORY; } } - rel_name = talloc_asprintf_append(ctx, + rel_name = talloc_asprintf_append(rel_name, "%s", link_target); if (!rel_name) {