ppplib.c - bugs and a crash
ppplib.c - bugs and a crash
- Subject: ppplib.c - bugs and a crash
- From: Jens Bauer <email@hidden>
- Date: Wed, 3 Apr 2002 11:26:27 +0200
Hi all
(radar #2892381)
I've reported 2 problems in the ppplib.c, which are:
1: a minor memory leak
2: a crash
To fix these, go to line 119 and replace this sequence:
if(read(ref, &data, msg.m_len) != msg.m_len) // read data
return errno;
by:
if(read(ref, data, msg.m_len) != msg.m_len) // read data (read to
correct location)
{
free(data); // (reduce memory leak)
return errno;
}
Love,
Jens
--
Jens Bauer, Faster Software.
-Let's make the World better, shall we ?
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.