sacc

sacc(omys), simple console gopher client (mirror)
git clone https://git.parazyd.org/sacc
Log | Files | Refs | LICENSE

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

Close socket after information is received

Thanks Hiljto

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

diff --git a/sacc.c b/sacc.c @@ -353,6 +353,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);