- Timestamp:
- Aug 10, 2009 4:28:21 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bootp.c
r22110 r22117 576 576 case DHCPINFORM: 577 577 rc = dhcp_decode_discover(pData, bp, buf, size, flag, m); 578 Assert(rc > 0);579 goto reply;578 if (rc > 0) 579 goto reply; 580 580 break; 581 581 case DHCPREQUEST: 582 582 rc = dhcp_decode_request(pData, bp, buf, size, m); 583 Assert(rc > 0);584 goto reply;583 if (rc > 0) 584 goto reply; 585 585 break; 586 586 case DHCPRELEASE: … … 590 590 #endif 591 591 rc = dhcp_decode_release(pData, bp, buf, size, flag); 592 Assert(rc > 0);593 goto reply;592 if (rc > 0) 593 goto reply; 594 594 break; 595 595 default: 596 596 AssertMsgFailed(("unsupported DHCP message type")); 597 597 } 598 Assert(m); 599 /*silently ignore*/ 600 m_free(pData, m); 598 601 return; 599 602 reply: 600 Assert(m);601 if (rc < 0)602 {603 /*silently ignore*/604 m_free(pData, m);605 return;606 }607 603 bootp_reply(pData, m, rc, bp->bp_flags); 608 604 return;
Note:
See TracChangeset
for help on using the changeset viewer.