Use while (*controlp != NULL) instead of do ... while (*control != NULL)

There are valid cases where *controlp will be NULL at this point.

Discussed with:	dwmalone
This commit is contained in:
cognet 2003-04-14 14:44:36 +00:00
parent 57c77ee3ed
commit 64f4176c9e

View File

@ -931,9 +931,8 @@ soreceive(so, psa, uio, mp0, controlp, flagsp)
}
if (controlp) {
orig_resid = 0;
do
while (*controlp != NULL)
controlp = &(*controlp)->m_next;
while (*controlp != NULL);
}
}
if (m) {