summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2006-09-20 17:37:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:00:52 -0500
commit77a7066d79dd0cb26a63d70295b318b70e12ea17 (patch)
tree224f3041406768fd44a370465e76a8c5ca8537fb
parente04dda6a2ab35eb2e4dc18a8a0507517175a655e (diff)
downloadsamba-77a7066d79dd0cb26a63d70295b318b70e12ea17.tar.gz
samba-77a7066d79dd0cb26a63d70295b318b70e12ea17.tar.bz2
samba-77a7066d79dd0cb26a63d70295b318b70e12ea17.zip
r18724: Fixup time(0) -> time(NULL)
(This used to be commit 6b17af0769ab0d04ec01cc83ed6e7fad822b00b1)
-rw-r--r--source3/rpc_server/srv_samr_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_samr_util.c b/source3/rpc_server/srv_samr_util.c
index 08a2fb92bb..94121e2717 100644
--- a/source3/rpc_server/srv_samr_util.c
+++ b/source3/rpc_server/srv_samr_util.c
@@ -292,7 +292,7 @@ void copy_id21_to_sam_passwd(struct samu *to, SAM_USER_INFO_21 *from)
if (from->passmustchange == PASS_MUST_CHANGE_AT_NEXT_LOGON) {
pdb_set_pass_last_set_time(to, 0, PDB_CHANGED);
} else {
- pdb_set_pass_last_set_time(to, time(0), PDB_CHANGED);
+ pdb_set_pass_last_set_time(to, time(NULL),PDB_CHANGED);
}
}
@@ -521,7 +521,7 @@ void copy_id23_to_sam_passwd(struct samu *to, SAM_USER_INFO_23 *from)
if (from->passmustchange == PASS_MUST_CHANGE_AT_NEXT_LOGON) {
pdb_set_pass_last_set_time(to, 0, PDB_CHANGED);
} else {
- pdb_set_pass_last_set_time(to, time(0), PDB_CHANGED);
+ pdb_set_pass_last_set_time(to, time(NULL),PDB_CHANGED);
}
}