On Mon, Jan 06, 2014 at 01:57:28PM +0100, Simon Kuhnle wrote:
> >Synopsis: identd appends garbage bytes at the end of the username on the
> >first response
hey simon,
i was able to reproduce this and came up with the following fix.
ill commit it now, so you should be able to just cvs up to get it.
thanks for the report :)
cheers,
dlg
Index: identd.c
===================================================================
RCS file: /cvs/src/usr.sbin/identd/identd.c,v
retrieving revision 1.23
diff -u -p -r1.23 identd.c
--- identd.c 21 Nov 2013 03:09:07 -0000 1.23
+++ identd.c 7 Jan 2014 00:05:18 -0000
@@ -395,7 +395,7 @@ parent_rd(int fd, short events, void *ar
goto done;
}
- r->buflen = n;
+ r->buflen = n + 1;
done:
SIMPLEQ_INSERT_TAIL(&sc.parent.replies, r, entry);