ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/ihost/ihost.c
(Generate patch)

Comparing projects/cms/source/ihost/ihost.c (file contents):
Revision 1.29 by tdb, Mon Mar 3 12:32:35 2003 UTC vs.
Revision 1.32 by pajs, Thu Mar 6 12:01:33 2003 UTC

# Line 220 | Line 220 | int ihost_getconfig(ihost_state_t *ihost_state){
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){
# Line 236 | Line 238 | int ihost_getconfig(ihost_state_t *ihost_state){
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines