remove trailing whitespace
This commit is contained in:
@@ -360,13 +360,13 @@ hdb_sqlite_make_database(krb5_context context, HDB *db, const char *filename)
|
||||
if(ret) goto out;
|
||||
|
||||
return 0;
|
||||
|
||||
|
||||
out:
|
||||
if (hsdb->db)
|
||||
sqlite3_close(hsdb->db);
|
||||
if (created_file)
|
||||
unlink(hsdb->db_file);
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -430,7 +430,7 @@ hdb_sqlite_fetch_kvno(krb5_context context, HDB *db, krb5_const_principal princi
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ret = 0;
|
||||
|
||||
out:
|
||||
@@ -496,12 +496,12 @@ hdb_sqlite_store(krb5_context context, HDB *db, unsigned flags,
|
||||
"BEGIN IMMEDIATE TRANSACTION", EINVAL);
|
||||
if(ret != SQLITE_OK) {
|
||||
ret = EINVAL;
|
||||
krb5_set_error_message(context, ret,
|
||||
krb5_set_error_message(context, ret,
|
||||
"SQLite BEGIN TRANSACTION failed: %s",
|
||||
sqlite3_errmsg(hsdb->db));
|
||||
goto rollback;
|
||||
}
|
||||
|
||||
|
||||
ret = krb5_unparse_name(context,
|
||||
entry->entry.principal, &principal_string);
|
||||
if (ret) {
|
||||
@@ -540,7 +540,7 @@ hdb_sqlite_store(krb5_context context, HDB *db, unsigned flags,
|
||||
goto rollback;
|
||||
|
||||
entry_id = sqlite3_column_int64(get_ids, 1);
|
||||
|
||||
|
||||
} else if(ret == SQLITE_ROW) { /* Found a principal */
|
||||
|
||||
if(! (flags & HDB_F_REPLACE)) /* Not allowed to replace it */
|
||||
@@ -584,7 +584,7 @@ hdb_sqlite_store(krb5_context context, HDB *db, unsigned flags,
|
||||
ret = hdb_sqlite_step_once(context, db, hsdb->add_alias);
|
||||
|
||||
free(alias_string);
|
||||
|
||||
|
||||
if(ret != SQLITE_DONE)
|
||||
goto rollback;
|
||||
}
|
||||
@@ -594,12 +594,12 @@ hdb_sqlite_store(krb5_context context, HDB *db, unsigned flags,
|
||||
commit:
|
||||
|
||||
free(principal_string);
|
||||
|
||||
|
||||
krb5_data_free(&value);
|
||||
|
||||
sqlite3_clear_bindings(get_ids);
|
||||
sqlite3_reset(get_ids);
|
||||
|
||||
|
||||
ret = hdb_sqlite_exec_stmt(context, hsdb->db, "COMMIT", EINVAL);
|
||||
if(ret != SQLITE_OK)
|
||||
krb5_warnx(context, "hdb-sqlite: COMMIT problem: %d: %s",
|
||||
@@ -644,8 +644,8 @@ hdb_sqlite_close(krb5_context context, HDB *db)
|
||||
*
|
||||
* @param context The current krb5 context
|
||||
* @param db Heimdal database handle
|
||||
* @param flags
|
||||
* @param mode_t
|
||||
* @param flags
|
||||
* @param mode_t
|
||||
*
|
||||
* @return Always returns 0
|
||||
*/
|
||||
@@ -678,7 +678,7 @@ hdb_sqlite_destroy(krb5_context context, HDB *db)
|
||||
free(hsdb->db_file);
|
||||
free(db->hdb_db);
|
||||
free(db);
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -793,7 +793,7 @@ hdb_sqlite_remove(krb5_context context, HDB *db,
|
||||
char *principal_string;
|
||||
hdb_sqlite_db *hsdb = (hdb_sqlite_db*)(db->hdb_db);
|
||||
sqlite3_stmt *remove = hsdb->remove;
|
||||
|
||||
|
||||
ret = krb5_unparse_name(context, principal, &principal_string);
|
||||
if (ret) {
|
||||
free(principal_string);
|
||||
@@ -810,7 +810,7 @@ hdb_sqlite_remove(krb5_context context, HDB *db,
|
||||
ret);
|
||||
} else
|
||||
ret = 0;
|
||||
|
||||
|
||||
sqlite3_clear_bindings(remove);
|
||||
sqlite3_reset(remove);
|
||||
|
||||
|
Reference in New Issue
Block a user