Set filedecriptor to -1 on allocated decriptor entries.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3286 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-08-30 16:48:07 +00:00
parent 8ae8844871
commit 5e3b5324e1

View File

@@ -371,6 +371,8 @@ loop(void)
else{
d = tmp;
memset(d + ndescr, 0, 4 * sizeof(*d));
for(i = ndescr; i < ndescr + 4; i++)
d[i].s = -1;
min_free = ndescr;
ndescr += 4;
}