loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.
[kai/samba.git] / source3 / smbd / dosmode.c
index 747ba2169a03eeea0b2931cb5d364c35db7b53ae..836ffd0de57e69c9caae3541a86cc0f39434968f 100644 (file)
@@ -889,7 +889,7 @@ NTSTATUS file_set_sparse(connection_struct *conn,
                        "on readonly share[%s]\n",
                        smb_fname_str_dbg(fsp->fsp_name),
                        sparse,
-                       lp_servicename(SNUM(conn))));
+                       lp_servicename(talloc_tos(), SNUM(conn))));
                return NT_STATUS_MEDIA_WRITE_PROTECTED;
        }