Changeset 551 for branches

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

check if a full packet has been received
(i.e. differ return code 0 / 1, not only < 0).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/openct-0.6/src/ifd/ifdhandler.c

    r460 r551  
    300300         * and wait for more 
    301301         * XXX add timeout? */ 
    302         if (ct_socket_get_packet(sock, &header, &args) < 0) 
    303                 return 0; 
     302        if ((rc = ct_socket_get_packet(sock, &header, &args)) < 1) 
     303                return rc; 
    304304 
    305305        ct_buf_init(&resp, buffer, sizeof(buffer));