Skip to content

Commit

Permalink
inadyn: freedns: fix memory leak and some grammar in log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
troglobit authored and RMerl committed Jul 20, 2021
1 parent b450eef commit 34134a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions release/src/router/inadyn/plugins/freedns.c
Expand Up @@ -110,11 +110,12 @@ static int setup(ddns_t *ctx, ddns_info_t *info, ddns_alias_t *alias)

tmp = buf = fetch_keys(ctx, info);
if (!buf) {
logit(LOG_ERR, "Cannot find you FreeDNS account API keys");
logit(LOG_ERR, "Cannot find your FreeDNS account API keys");
return RC_ERROR;
}

if (strstr(buf, "Could not authenticate")) {
if (strstr(buf, "Failed authenticating to fetch API keys")) {
free(buf);
return RC_DDNS_RSP_AUTH_FAIL;
}

Expand Down

0 comments on commit 34134a3

Please sign in to comment.