{
handle->pkey_str = GNUNET_CONTAINER_multihashmap_get (conndata_handle->url_param_map,
&key);
+ GNUNET_assert (NULL != handle->pkey_str);
if (GNUNET_OK !=
GNUNET_CRYPTO_ecdsa_public_key_from_string (handle->pkey_str,
strlen(handle->pkey_str),
{
cur_value = GNUNET_CONTAINER_multihashmap_get (ego_entry->attr_map,
&key_hash);
+ GNUNET_assert (NULL != cur_value);
GNUNET_CONTAINER_DLL_insert (new_token->attr_head,
new_token->attr_tail,
cur_value);
}
nonce_str = GNUNET_CONTAINER_multihashmap_get (handle->conndata_handle->url_param_map,
&key);
+ GNUNET_assert (NULL != nonce_str);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Request nonce: %s\n",
nonce_str);
}
ego_val = GNUNET_CONTAINER_multihashmap_get (handle->conndata_handle->url_param_map,
&key);
+ GNUNET_assert (NULL != ego_val);
//Remove non-matching egos
for (ego_entry = handle->ego_head;
NULL != ego_entry;)
}
nonce_str = GNUNET_CONTAINER_multihashmap_get (handle->conndata_handle->url_param_map,
&key);
+ GNUNET_assert (NULL != nonce_str);
GNUNET_assert (1 == sscanf (nonce_str, "%"SCNu64, &expected_nonce));
if (ticket_nonce != expected_nonce)
}
handle->zkey_str = GNUNET_CONTAINER_multihashmap_get (handle->rest_handle->url_param_map,
&key);
- if (GNUNET_OK !=
- GNUNET_CRYPTO_ecdsa_public_key_from_string (handle->zkey_str,
+ if ((NULL == handle->zkey_str) ||
+ (GNUNET_OK !=
+ GNUNET_CRYPTO_ecdsa_public_key_from_string (handle->zkey_str,
strlen (handle->zkey_str),
- &pubkey))
+ &pubkey)))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Zkey invalid %s\n", handle->zkey_str);
{
type = GNUNET_CONTAINER_multihashmap_get (handle->rest_handle->url_param_map,
&key);
-
- handle->type = GNUNET_GNSRECORD_typename_to_number (type);
+ if (NULL != type)
+ handle->type = GNUNET_GNSRECORD_typename_to_number (type);
}
name = get_name_from_url (handle->url);
if (NULL != ego)