diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-19 12:22:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-19 12:22:39 +0000 |
commit | be8b1a087b70b2ee0dc905f7589199ebfa19c064 (patch) | |
tree | 03021e8ec5326e406f908b5279025dcb2c71923b /src/datastore/gnunet-service-datastore.c | |
parent | fa17e0a271f2e8a51017dc35756dab1254cf4b0a (diff) | |
download | gnunet-be8b1a087b70b2ee0dc905f7589199ebfa19c064.tar.gz gnunet-be8b1a087b70b2ee0dc905f7589199ebfa19c064.zip |
bugfixes
Diffstat (limited to 'src/datastore/gnunet-service-datastore.c')
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index 74196dd1e..f491d2453 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -516,11 +516,6 @@ check_data (const struct GNUNET_MessageHeader *message) | |||
516 | GNUNET_break (0); | 516 | GNUNET_break (0); |
517 | return NULL; | 517 | return NULL; |
518 | } | 518 | } |
519 | if (ntohl(dm->type) == 0) | ||
520 | { | ||
521 | GNUNET_break (0); | ||
522 | return NULL; | ||
523 | } | ||
524 | return dm; | 519 | return dm; |
525 | } | 520 | } |
526 | 521 | ||
@@ -547,6 +542,11 @@ handle_put (void *cls, | |||
547 | "Processing `%s' request\n", | 542 | "Processing `%s' request\n", |
548 | "PUT"); | 543 | "PUT"); |
549 | #endif | 544 | #endif |
545 | if (ntohl(dm->type) == 0) | ||
546 | { | ||
547 | GNUNET_break (0); | ||
548 | dm = NULL; | ||
549 | } | ||
550 | if (dm == NULL) | 550 | if (dm == NULL) |
551 | { | 551 | { |
552 | GNUNET_break (0); | 552 | GNUNET_break (0); |