aboutsummaryrefslogtreecommitdiff
path: root/src/credential/plugin_gnsrecord_credential.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/credential/plugin_gnsrecord_credential.c')
-rw-r--r--src/credential/plugin_gnsrecord_credential.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/credential/plugin_gnsrecord_credential.c b/src/credential/plugin_gnsrecord_credential.c
index ffb2857dc..cba362a50 100644
--- a/src/credential/plugin_gnsrecord_credential.c
+++ b/src/credential/plugin_gnsrecord_credential.c
@@ -62,9 +62,9 @@ credential_value_to_string (void *cls,
62 int i; 62 int i;
63 if (data_size < sizeof (struct GNUNET_CREDENTIAL_DelegationRecord)) 63 if (data_size < sizeof (struct GNUNET_CREDENTIAL_DelegationRecord))
64 return NULL; /* malformed */ 64 return NULL; /* malformed */
65 memcpy (&sets, 65 GNUNET_memcpy (&sets,
66 data, 66 data,
67 sizeof (sets)); 67 sizeof (sets));
68 cdata = data; 68 cdata = data;
69 struct GNUNET_CREDENTIAL_DelegationSet set[ntohl(sets.set_count)]; 69 struct GNUNET_CREDENTIAL_DelegationSet set[ntohl(sets.set_count)];
70 if (GNUNET_OK != GNUNET_CREDENTIAL_delegation_set_deserialize (GNUNET_ntohll (sets.data_size), 70 if (GNUNET_OK != GNUNET_CREDENTIAL_delegation_set_deserialize (GNUNET_ntohll (sets.data_size),
@@ -224,7 +224,7 @@ credential_string_to_value (void *cls,
224 } 224 }
225 tmp_data_size = GNUNET_CREDENTIAL_delegation_set_get_size (entries, 225 tmp_data_size = GNUNET_CREDENTIAL_delegation_set_get_size (entries,
226 set); 226 set);
227 227
228 if (-1 == tmp_data_size) 228 if (-1 == tmp_data_size)
229 { 229 {
230 GNUNET_free (tmp_str); 230 GNUNET_free (tmp_str);
@@ -248,7 +248,7 @@ credential_string_to_value (void *cls,
248 return GNUNET_OK; 248 return GNUNET_OK;
249 } 249 }
250 case GNUNET_GNSRECORD_TYPE_CREDENTIAL: 250 case GNUNET_GNSRECORD_TYPE_CREDENTIAL:
251 { 251 {
252 struct GNUNET_CREDENTIAL_Credential *cred; 252 struct GNUNET_CREDENTIAL_Credential *cred;
253 cred = GNUNET_CREDENTIAL_credential_from_string (s); 253 cred = GNUNET_CREDENTIAL_credential_from_string (s);
254 254