sacc

sacc (saccomys): simple gopher client.
Log | Files | Refs | LICENSE

commit bac69ffc9bd7be308a7c5817904b9228095500cf
parent a8445ba3cd5c5b00fd161f2a946badb0a2a8c19c
Author: Quentin Rameau <quinq@fifth.space>
Date:   Fri, 23 Jun 2017 01:17:09 +0200

Close socket after information is received

Thanks Hiljto

Diffstat:
sacc.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/sacc.c b/sacc.c @@ -358,6 +358,7 @@ dig(Item *entry, Item *item) sock = connectto(item->host, item->port); sendselector(sock, item->selector); item->raw = getrawitem(sock); + close(sock); if (!*item->raw) { /* empty read */ free(item->raw);