diff options
author | Marco d'Itri <md@linux.it> | 2018-05-22 04:33:34 +0200 |
---|---|---|
committer | Marco d'Itri <md@linux.it> | 2018-05-22 04:33:34 +0200 |
commit | 42f6fab4cf8c7bd9e913847ecd82bd16ba8b984b (patch) | |
tree | 596ccc998f01620958ddcc67d70e5752d9544630 /whois.c | |
parent | 51ff1b39f9f16f335b483882f9693bf6018068de (diff) | |
download | whois-42f6fab4cf8c7bd9e913847ecd82bd16ba8b984b.tar.gz |
Fix a use after free in convert_in6arpa()
Looks like I forgot a free() call after changing the API.
Reported by Coverity Scan.
Diffstat (limited to 'whois.c')
-rw-r--r-- | whois.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1356,7 +1356,6 @@ char *convert_in6arpa(const char *s) /* check that this is a valid digit for an IPv6 address */ if (!((*p >= '0' && *p <= '9') || (*p >= 'a' && *p <= 'f') || (*p >= 'A' && *p <= 'F'))) { - free(ip); ip[character] = '\0'; return ip; } |