unsigned int put_path_length,
const struct GNUNET_PeerIdentity *put_path)
{
+ static char non_null;
struct GetRequestContext *ctx = cls;
enum GNUNET_BLOCK_EvaluationResult eval;
+ if ( (NULL == data) &&
+ (0 == data_size) )
+ data = &non_null; /* point anywhere, but not to NULL */
+
eval
= GNUNET_BLOCK_evaluate (GDS_block_context,
type,
GNUNET_break_op (0);
return GNUNET_BLOCK_EVALUATION_REQUEST_INVALID;
}
- if ( (NULL == reply_block) ||
- (0 == reply_block_size) )
+ if (NULL == reply_block)
return GNUNET_BLOCK_EVALUATION_REQUEST_VALID;
if (reply_block_size < sizeof (struct GNUNET_MessageHeader))
{
if (0 != xquery_size)
return GNUNET_BLOCK_EVALUATION_REQUEST_INVALID;
- if (0 == reply_block_size)
+ if (NULL == reply_block)
return GNUNET_BLOCK_EVALUATION_REQUEST_VALID;
if (sizeof (struct GNUNET_DNS_Advertisement) != reply_block_size)