[dhcp-agent-commits] dhcp-agent/src dhcp-client-control.c,1.19,1.20
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2003-07-17 00:35:57
|
Update of /cvsroot/dhcp-agent/dhcp-agent/src In directory sc8-pr-cvs1:/tmp/cvs-serv22667/src Modified Files: dhcp-client-control.c Log Message: fix to client: check for failed service lookup before converting to host order Index: dhcp-client-control.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-client-control.c,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** dhcp-client-control.c 25 Jun 2003 03:08:32 -0000 1.19 --- dhcp-client-control.c 17 Jul 2003 00:35:52 -0000 1.20 *************** *** 147,153 **** sport = rawnet_port_for_service("bootpc", "udp"); - dport = ntohs(dport); - sport = ntohs(sport); - if(dport == -1 || sport == -1) { --- 147,150 ---- *************** *** 158,161 **** --- 155,161 ---- dport = BOOTP_SERVER; } + + dport = ntohs(dport); + sport = ntohs(sport); /* Create filter. */ |