Revision 525bb486 loop.c

View differences:

loop.c
60 60
      struct nodeID *remote;
61 61

  
62 62
      len = recv_from_peer(s, &remote, buff, BUFFSIZE);
63
      if (len < 0) {
64
        fprintf(stderr,"Error receiving message. Maybe larger than %d bytes\n", BUFFSIZE);
65
        nodeid_free(remote);
66
        continue;
67
      }
63 68
      switch (buff[0] /* Message Type */) {
64 69
        case MSG_TYPE_TOPOLOGY:
65 70
          dprintf("Topo message received\n");

Also available in: Unified diff