220 |
|
int server_udp_port=0; |
221 |
|
time_t config_ttl=0; |
222 |
|
|
223 |
< |
tcp_con=create_tcp_connection(ihost_state->filtermanager_host, ihost_state->filtermanager_port); |
223 |
> |
if((tcp_con=create_tcp_connection(ihost_state->filtermanager_host, ihost_state->filtermanager_port))==NULL){ |
224 |
> |
goto error; |
225 |
> |
} |
226 |
|
|
227 |
|
if(ihost_state->file_list!=NULL || ihost_state->last_modified!=NULL){ |
228 |
|
if(tcp_con==NULL){ |
238 |
|
} |
239 |
|
|
240 |
|
if((tcp_comm(tcp_con, ihost_state->last_modified, &response, "OK"))==0){ |
241 |
< |
if((tcp_comm(tcp_con, "END", &response, "OK"))==0){ |
241 |
> |
if((tcp_comm(tcp_con, "END", &response, "OK"))!=0){ |
242 |
|
goto error; |
243 |
|
} |
244 |
|
fclose(tcp_con); |