Update of /cvsroot/dhcp-agent/dhcp-agent/src
In directory sc8-pr-cvs1:/tmp/cvs-serv4318
Modified Files:
dhcp-client-states.c
Log Message:
fix to warning message about empty parameter list
Index: dhcp-client-states.c
===================================================================
RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-client-states.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** dhcp-client-states.c 19 Dec 2002 03:30:15 -0000 1.12
--- dhcp-client-states.c 19 Dec 2002 03:50:41 -0000 1.13
***************
*** 101,106 ****
option = dhcp_build_parameter_request_list_option(client_conf_get_opt_bit_array(dc->conf));
! if(option != NULL) {
WARN_MESSAGE("sending with empty parameter request list");
options = add_to_list(options, option);
}
--- 101,107 ----
option = dhcp_build_parameter_request_list_option(client_conf_get_opt_bit_array(dc->conf));
! if(option == NULL) {
WARN_MESSAGE("sending with empty parameter request list");
+ } else {
options = add_to_list(options, option);
}
|