geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit f26ccad8ca8d0f79f7195f6871bb2ceac816ccfa
parent 03a382fe95dfeb696629733bbb5a9a751df1b3aa
Author: Lucas Gabriel Vuotto <lgv@nanashi.co>
Date:   Tue, 23 Jan 2018 16:02:23 -0300

Only free ahost if the reverse lookup was performed

Signed-off-by: Lucas Gabriel Vuotto <lgv@nanashi.co>
Signed-off-by: Christoph Lohmann <20h@r-36.net>

Diffstat:
main.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -99,7 +99,8 @@ logentry(char *host, char *port, char *qry, char *status) dprintf(glfd, "[%s|%s|%s|%s] %s\n", timstr, ahost, port, status, qry); - free(ahost); + if (revlookup) + free(ahost); } return;