s3:winbind: use talloc_tos() instead of NULL in fillup_pw_field
authorVolker Lendecke <vl@samba.org>
Sat, 3 Oct 2009 14:43:01 +0000 (16:43 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 3 Oct 2009 14:43:16 +0000 (16:43 +0200)
source3/winbindd/winbindd_user.c

index b23b7df608c81c5d7d40e0223f5701dac947b787..7af2d6d20246dc85b5278d6994fd0c518fcf52e5 100644 (file)
@@ -47,11 +47,11 @@ bool fillup_pw_field(const char *lp_template,
           Otherwise use the template value passed in. */
 
        if ( in && !strequal(in,"") && lp_security() == SEC_ADS ) {
-               templ = talloc_sub_specified(NULL, in,
+               templ = talloc_sub_specified(talloc_tos(), in,
                                             username, domname,
                                     uid, gid);
        } else {
-               templ = talloc_sub_specified(NULL, lp_template,
+               templ = talloc_sub_specified(talloc_tos(), lp_template,
                                             username, domname,
                                             uid, gid);
        }