Cope with changed signature of http_timestring().
[bbaumbach/samba-autobuild/.git] / source3 / auth / auth_sam.c
index 50bf15318be5b0b2071515cfdfe6a1bb8daf59d7..7fe76fbfd6d2214588ecbd60477b684e19492225 100644 (file)
@@ -176,7 +176,7 @@ static NTSTATUS sam_account_ok(TALLOC_CTX *mem_ctx,
                /* check for expired password */
                if (must_change_time < time(NULL) && must_change_time != 0) {
                        DEBUG(1,("sam_account_ok: Account for user '%s' password expired!.\n", pdb_get_username(sampass)));
-                       DEBUG(1,("sam_account_ok: Password expired at '%s' (%ld) unix time.\n", http_timestring(must_change_time), (long)must_change_time));
+                       DEBUG(1,("sam_account_ok: Password expired at '%s' (%ld) unix time.\n", http_timestring(talloc_tos(), must_change_time), (long)must_change_time));
                        return NT_STATUS_PASSWORD_EXPIRED;
                }
        }