Fixed typo-bug introduced some months ago while fixing bug #41041...

This commit is contained in:
Simon Goldschmidt 2014-05-19 22:03:19 +02:00
parent dbd125c714
commit c3ac875055
2 changed files with 3 additions and 3 deletions

View File

@ -595,7 +595,7 @@ ip_reass(struct pbuf *p)
}
/* find the previous entry in the linked list */
for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr = ipr->next) {
for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) {
if (ipr_prev->next == ipr) {
break;
}

View File

@ -292,7 +292,7 @@ ip6_reass(struct pbuf *p)
ipr = (struct ip6_reassdata *)memp_malloc(MEMP_IP6_REASSDATA);
if (ipr != NULL) {
/* re-search ipr_prev since it might have been removed */
for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr = ipr->next) {
for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) {
if (ipr_prev->next == ipr) {
break;
}
@ -331,7 +331,7 @@ ip6_reass(struct pbuf *p)
ip6_reass_remove_oldest_datagram(ipr, clen);
if ((ip6_reass_pbufcount + clen) <= IP_REASS_MAX_PBUFS) {
/* re-search ipr_prev since it might have been removed */
for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr = ipr->next) {
for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) {
if (ipr_prev->next == ipr) {
break;
}