--- projects/cms/source/ihost/ihost.c 2003/03/03 12:32:35 1.29 +++ projects/cms/source/ihost/ihost.c 2003/03/06 12:01:33 1.32 @@ -220,7 +220,9 @@ int ihost_getconfig(ihost_state_t *ihost_state){ int server_udp_port=0; time_t config_ttl=0; - tcp_con=create_tcp_connection(ihost_state->filtermanager_host, ihost_state->filtermanager_port); + if((tcp_con=create_tcp_connection(ihost_state->filtermanager_host, ihost_state->filtermanager_port))==NULL){ + goto error; + } if(ihost_state->file_list!=NULL || ihost_state->last_modified!=NULL){ if(tcp_con==NULL){ @@ -236,7 +238,7 @@ int ihost_getconfig(ihost_state_t *ihost_state){ } if((tcp_comm(tcp_con, ihost_state->last_modified, &response, "OK"))==0){ - if((tcp_comm(tcp_con, "END", &response, "OK"))==0){ + if((tcp_comm(tcp_con, "END", &response, "OK"))!=0){ goto error; } fclose(tcp_con);