CVSROOT:        /cvs
Module name:    src
Changes by:     k...@cvs.openbsd.org    2014/11/26 10:34:36

Modified files:
        sbin/dhclient  : dispatch.c 

Log message:
'ifi' is successfully calloc'd during initialization or dhclient
exits, so there is no need to constantly check if 'ifi' is NULL.
Similarly 'ifi->bfdesc' is successfully opened during initialization
or dhclient exits, so there is no point in constantly checking if
it has regressed to -1. Finally, no need to check 'ifi->linkstat'
before trying to read a packet. If there is a packet it should just
as well be read immediately rather than waiting for the link to
reappear and confuse things.

No intentional functional change.

Reply via email to