summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_mysql.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-06-20 19:36:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:21 -0500
commitaeb3e96cdb61e3085df919f30ab6af3c7b777e54 (patch)
treea22ea449f4c630f0eab3e20041675f7824d83dd8 /source3/passdb/pdb_mysql.c
parentb62247f1eee94cadcf293084ce747c4b58aa1ac5 (diff)
downloadsamba-aeb3e96cdb61e3085df919f30ab6af3c7b777e54.tar.gz
samba-aeb3e96cdb61e3085df919f30ab6af3c7b777e54.tar.bz2
samba-aeb3e96cdb61e3085df919f30ab6af3c7b777e54.zip
r7787: Fix from Fernando Schapachnik <fernando@mecon.gov.ar> to add logon hours
support for the Postgres backend. Jeremy. (This used to be commit dd5d36c95f97356be1b76c1ace641861022e2aa3)
Diffstat (limited to 'source3/passdb/pdb_mysql.c')
-rw-r--r--source3/passdb/pdb_mysql.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/passdb/pdb_mysql.c b/source3/passdb/pdb_mysql.c
index 6ff88b1469..27675a9cd1 100644
--- a/source3/passdb/pdb_mysql.c
+++ b/source3/passdb/pdb_mysql.c
@@ -391,6 +391,8 @@ static NTSTATUS mysqlsam_replace_sam_account(struct pdb_methods *methods,
}
query = sql_account_query_update(NULL, data->location, newpwd, isupdate);
+ if ( query == NULL ) /* Nothing to update. */
+ return NT_STATUS_OK;
/* Execute the query */
if (mysql_query(data->handle, query)) {