Skip to content

Commit

Permalink
Merge pull request #310 from jelu/fixes
Browse files Browse the repository at this point in the history
Badges, fixes
  • Loading branch information
jelu authored Aug 22, 2024
2 parents 0fc7c84 + 26c3b9e commit 8bb338b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DNS Statistics Collector

[![Total alerts](https://img.shields.io/lgtm/alerts/g/DNS-OARC/dsc.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/DNS-OARC/dsc/alerts/) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=dns-oarc%3Adsc&metric=bugs)](https://sonarcloud.io/dashboard?id=dns-oarc%3Adsc) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=dns-oarc%3Adsc&metric=security_rating)](https://sonarcloud.io/dashboard?id=dns-oarc%3Adsc)
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=dns-oarc%3Adsc&metric=bugs)](https://sonarcloud.io/summary/new_code?id=dns-oarc%3Adsc) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=dns-oarc%3Adsc&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=dns-oarc%3Adsc)

DNS Statistics Collector (DSC) is a tool used for collecting and exploring
statistics from busy DNS servers. It can be set up to run on or near
Expand Down
4 changes: 4 additions & 0 deletions src/config_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,11 +656,15 @@ int load_knowntlds(const char* file)

if (!(new_KnownTLDS = xrealloc(new_KnownTLDS, (new_size + 1) * sizeof(char*)))) {
dsyslog(LOG_ERR, "out of memory");
free(buffer);
fclose(fp);
return 0;
}
new_KnownTLDS[new_size] = xstrdup(buffer);
if (!new_KnownTLDS[new_size]) {
dsyslog(LOG_ERR, "out of memory");
free(buffer);
fclose(fp);
return 0;
}
new_size++;
Expand Down

0 comments on commit 8bb338b

Please sign in to comment.