diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-02-01 13:55:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-02-01 13:55:28 +0000 |
commit | 8f30685560bfd084d681aa3a9470002479bcff80 (patch) | |
tree | c09a7f0a3171a4563d3fbb253d924d002f06f27b /src/fs/fs_search.c | |
parent | 36b60a0ac26d8102667c590587b8a0d33c203cc9 (diff) | |
download | gnunet-8f30685560bfd084d681aa3a9470002479bcff80.tar.gz gnunet-8f30685560bfd084d681aa3a9470002479bcff80.zip |
fixes
Diffstat (limited to 'src/fs/fs_search.c')
-rw-r--r-- | src/fs/fs_search.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fs/fs_search.c b/src/fs/fs_search.c index 5d03046e2..3229733de 100644 --- a/src/fs/fs_search.c +++ b/src/fs/fs_search.c | |||
@@ -574,23 +574,23 @@ receive_results (void *cls, | |||
574 | const struct GNUNET_MessageHeader * msg) | 574 | const struct GNUNET_MessageHeader * msg) |
575 | { | 575 | { |
576 | struct GNUNET_FS_SearchContext *sc = cls; | 576 | struct GNUNET_FS_SearchContext *sc = cls; |
577 | const struct ContentMessage *cm; | 577 | const struct PutMessage *cm; |
578 | uint16_t msize; | 578 | uint16_t msize; |
579 | 579 | ||
580 | if ( (NULL == msg) || | 580 | if ( (NULL == msg) || |
581 | (ntohs (msg->type) != GNUNET_MESSAGE_TYPE_FS_CONTENT) || | 581 | (ntohs (msg->type) != GNUNET_MESSAGE_TYPE_FS_PUT) || |
582 | (ntohs (msg->size) <= sizeof (struct ContentMessage)) ) | 582 | (ntohs (msg->size) <= sizeof (struct PutMessage)) ) |
583 | { | 583 | { |
584 | try_reconnect (sc); | 584 | try_reconnect (sc); |
585 | return; | 585 | return; |
586 | } | 586 | } |
587 | msize = ntohs (msg->size); | 587 | msize = ntohs (msg->size); |
588 | cm = (const struct ContentMessage*) msg; | 588 | cm = (const struct PutMessage*) msg; |
589 | process_result (sc, | 589 | process_result (sc, |
590 | ntohl (cm->type), | 590 | ntohl (cm->type), |
591 | GNUNET_TIME_absolute_ntoh (cm->expiration), | 591 | GNUNET_TIME_absolute_ntoh (cm->expiration), |
592 | &cm[1], | 592 | &cm[1], |
593 | msize - sizeof (struct ContentMessage)); | 593 | msize - sizeof (struct PutMessage)); |
594 | /* continue receiving */ | 594 | /* continue receiving */ |
595 | GNUNET_CLIENT_receive (sc->client, | 595 | GNUNET_CLIENT_receive (sc->client, |
596 | &receive_results, | 596 | &receive_results, |