~ubuntu-branches/debian/sid/overkill/sid

« back to all changes in this revision

Viewing changes to net.c

  • Committer: Bazaar Package Importer
  • Author(s): Joachim Breitner
  • Date: 2006-10-18 09:31:10 UTC
  • mfrom: (3.1.1 breezy)
  • Revision ID: james.westby@ubuntu.com-20061018093110-mfbvk31cerex660n
Tags: 0.16-10
Fixing unneeded dependency on libxpm (thx to checklib) by
actually using it

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
        r=p[8]+(p[9]<<8)+(p[10]<<16)+(p[11]<<24);
92
92
        mem_free(p);
93
93
        if (retval==-1)return -1;
94
 
        if (crc!=crc32(packet,retval-12))return -1;
 
94
        if (retval < 12 || crc!=crc32(packet,retval-12))return -1;
95
95
        if (r!=recipient)return -1;
96
96
        if (sender_server&&s)return -1;
97
97
        return retval-12;