aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_cp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-03-31 13:21:24 +0000
committerChristian Grothoff <christian@grothoff.org>2011-03-31 13:21:24 +0000
commit672d4cc8c0d9d2f7420e837511bffac88777345b (patch)
treefd087cd175dceb4d41b71334cf6d9f0fcadb24c2 /src/fs/gnunet-service-fs_cp.c
parent664f658ddc0b302cc7b04d31319dba1e26f5f603 (diff)
downloadgnunet-672d4cc8c0d9d2f7420e837511bffac88777345b.tar.gz
gnunet-672d4cc8c0d9d2f7420e837511bffac88777345b.zip
fixes
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.c')
-rw-r--r--src/fs/gnunet-service-fs_cp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c
index 0452b7332..3298a5216 100644
--- a/src/fs/gnunet-service-fs_cp.c
+++ b/src/fs/gnunet-service-fs_cp.c
@@ -939,6 +939,18 @@ GSF_handle_p2p_query_ (const struct GNUNET_PeerIdentity *other,
939 (unsigned int) bm); 939 (unsigned int) bm);
940#endif 940#endif
941 namespace = (0 != (bm & GET_MESSAGE_BIT_SKS_NAMESPACE)) ? &opt[bits++] : NULL; 941 namespace = (0 != (bm & GET_MESSAGE_BIT_SKS_NAMESPACE)) ? &opt[bits++] : NULL;
942 if ( (type == GNUNET_BLOCK_TYPE_FS_SBLOCK) &&
943 (namespace == NULL) )
944 {
945 GNUNET_break_op (0);
946 return NULL;
947 }
948 if ( (type != GNUNET_BLOCK_TYPE_FS_SBLOCK) &&
949 (namespace != NULL) )
950 {
951 GNUNET_break_op (0);
952 return NULL;
953 }
942 target = (0 != (bm & GET_MESSAGE_BIT_TRANSMIT_TO)) ? ((const struct GNUNET_PeerIdentity*) &opt[bits++]) : NULL; 954 target = (0 != (bm & GET_MESSAGE_BIT_TRANSMIT_TO)) ? ((const struct GNUNET_PeerIdentity*) &opt[bits++]) : NULL;
943 options = 0; 955 options = 0;
944 spid = 0; 956 spid = 0;