Changeset 548 for branches

Show
Ignore:
Timestamp:
07/20/04 00:18:05 (4 years ago)
Author:
aj
Message:

fix protocoll bug triggered by egate.
I don't know why the ifdhandler sends two response
(one ok, one with reporting an error), but now we
ignore the second because xid is wrong.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/openct-0.6/src/ct/socket.c

    r469 r548  
    396396        /* Loop until we receive a complete packet with the 
    397397         * right xid in it */ 
     398        rc = 0; 
    398399        do { 
    399                 if ((rc = ct_socket_filbuf(sock, -1)) < 0) 
     400                if ((rc == 0) && (rc = ct_socket_filbuf(sock, -1)) < 0) 
    400401                        return -1; 
    401402