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:
parent
57c77ee3ed
commit
64f4176c9e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user