#1338 closed defect (fixed)

Check return value on rtems_event_receive in rtems_dhcp.c

Reported by: Gene Smith Owned by: Chris Johns
Priority: normal Milestone: 4.9
Component: network/legacy Version: 4.9
Severity: normal Keywords:
Cc: chrisj@… Blocked By:
Blocking:

Description

Task checks for event that may or may not have occurred and can exit erroneously. Instead it should check the return on rtems_event_receive() and exit only if the return value is not RTEMS_TIMEOUT indicating an event.

See mailing list thread "rtems_dhcp.c: dhcp_task() bug? plus question" (10-30-2008) for more details and discussion.

Attachments (1)

rtems_dhcp.c.diff (1002 bytes) - added by Gene Smith on 11/19/08 at 16:58:23.
Proposed change

Download all attachments as: .zip

Change History (4)

Changed on 11/19/08 at 16:58:23 by Gene Smith

Attachment: rtems_dhcp.c.diff added

Proposed change

comment:1 Changed on 02/16/09 at 07:40:14 by Chris Johns

Cc: Chris Johns added
Owner: changed from Eric Norum to Chris Johns

comment:2 Changed on 02/16/09 at 07:41:03 by Chris Johns

Status: newassigned

comment:3 Changed on 04/28/09 at 10:12:41 by Chris Johns

Resolution: fixed
Status: assignedclosed

Fix committed to CVS.

Note: See TracTickets for help on using tickets.