[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1381 - GNUnet/src/applications/fragmentation
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1381 - GNUnet/src/applications/fragmentation |
Date: |
Sun, 10 Jul 2005 16:36:12 -0700 (PDT) |
Author: grothoff
Date: 2005-07-10 16:36:09 -0700 (Sun, 10 Jul 2005)
New Revision: 1381
Modified:
GNUnet/src/applications/fragmentation/fragmentation.c
Log:
fragfix
Modified: GNUnet/src/applications/fragmentation/fragmentation.c
===================================================================
--- GNUnet/src/applications/fragmentation/fragmentation.c 2005-07-10
23:34:45 UTC (rev 1380)
+++ GNUnet/src/applications/fragmentation/fragmentation.c 2005-07-10
23:36:09 UTC (rev 1381)
@@ -393,7 +393,9 @@
hash = sender->hashPubKey.bits[0] % DEFRAG_BUCKET_COUNT;
smf = defragmentationCache[hash];
while (smf != NULL) {
- if (OK == tryJoin(smf, sender, (FRAGMENT_Message*) frag)) {
+ if (OK == tryJoin(smf,
+ sender,
+ (FRAGMENT_Message*) frag)) {
MUTEX_UNLOCK(&defragCacheLock);
return OK;
}
@@ -455,7 +457,8 @@
int id;
unsigned short mlen;
- if (len < ctx->mtu) {
+ if ( (len < ctx->mtu) ||
+ (buf == NULL) ) {
FREE(ctx);
return SYSERR;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1381 - GNUnet/src/applications/fragmentation,
grothoff <=