diff options
Diffstat (limited to 'source3/passdb/pdb_mysql.c')
-rw-r--r-- | source3/passdb/pdb_mysql.c | 2 |
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)) { |