Skip to content

Commit

Permalink
Spellcheck corrections
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Oct 7, 2023
1 parent db1fa3a commit 28358d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/api/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,7 @@ static const char *getJSONvalue(struct conf_item *conf_item, cJSON *elem, struct
char *pwhash = strlen(elem->valuestring) > 0 ? create_password(elem->valuestring) : strdup("");

// Verify that the password hash is valid
const bool verfied = verify_password(elem->valuestring, pwhash);

if(!verfied)
if(!verify_password(elem->valuestring, pwhash))
{
free(pwhash);
return "Failed to create password hash (verification failed), password remains unchanged";
Expand Down
4 changes: 1 addition & 3 deletions src/config/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ static bool readStringValue(struct conf_item *conf_item, const char *value, stru
char *pwhash = strlen(value) > 0 ? create_password(value) : strdup("");

// Verify that the password hash is valid
const bool verfied = verify_password(value, pwhash);

if(!verfied)
if(!verify_password(value, pwhash))
{
log_err("Failed to create password hash (verification failed), password remains unchanged");
free(pwhash);
Expand Down
2 changes: 1 addition & 1 deletion src/dnsmasq_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -2847,7 +2847,7 @@ void FTL_fork_and_bind_sockets(struct passwd *ent_pw, bool dnsmasq_start)
// Start database thread if database is used
if(pthread_create( &threads[DB], &attr, DB_thread, NULL ) != 0)
{
log_crit("Unable to creeate database thread. Exiting...");
log_crit("Unable to create database thread. Exiting...");
exit(EXIT_FAILURE);
}

Expand Down
2 changes: 1 addition & 1 deletion src/webserver/http-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ char *json_formatter(const cJSON *object)
{
if(config.webserver.api.prettyJSON.v.b)
{
/* Examplary output:
/* Exemplary output:
{
"queries in database": 70,
"database filesize": 49152,
Expand Down

0 comments on commit 28358d4

Please sign in to comment.