r25163: Fix wrong ctx passed to talloc_asprintf_append().
authorJeremy Allison <jra@samba.org>
Fri, 14 Sep 2007 16:50:54 +0000 (16:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:47 +0000 (12:30 -0500)
Found by Metze's code review (thanks Metze !).
Jeremy.

source/smbd/trans2.c

index 7af4bcee6063087afc676ad67400bf69d9977b37..478f60d094c6113557c9bbe092bf571648578693 100644 (file)
@@ -4876,7 +4876,7 @@ static NTSTATUS smb_set_file_unix_link(connection_struct *conn,
                                return NT_STATUS_NO_MEMORY;
                        }
                }
-               rel_name = talloc_asprintf_append(ctx,
+               rel_name = talloc_asprintf_append(rel_name,
                                "%s",
                                link_target);
                if (!rel_name) {