diff options
Diffstat (limited to 'src/abd/plugin_gnsrecord_abd.c')
-rw-r--r-- | src/abd/plugin_gnsrecord_abd.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/abd/plugin_gnsrecord_abd.c b/src/abd/plugin_gnsrecord_abd.c index 24cf6a3aa..7b2f4af5b 100644 --- a/src/abd/plugin_gnsrecord_abd.c +++ b/src/abd/plugin_gnsrecord_abd.c | |||
@@ -207,8 +207,13 @@ abd_string_to_value (void *cls, | |||
207 | matches = sscanf (token, "%s %s", subject_pkey, attr_str); | 207 | matches = sscanf (token, "%s %s", subject_pkey, attr_str); |
208 | 208 | ||
209 | // sets the public key for the set entry | 209 | // sets the public key for the set entry |
210 | GNUNET_IDENTITY_public_key_from_string (subject_pkey, | 210 | if (GNUNET_SYSERR == |
211 | &set[i].subject_key); | 211 | GNUNET_IDENTITY_public_key_from_string (subject_pkey, |
212 | &set[i].subject_key)) | ||
213 | { | ||
214 | GNUNET_free (tmp_str); | ||
215 | return GNUNET_SYSERR; | ||
216 | } | ||
212 | 217 | ||
213 | // If not just key, also set subject attribute (Not A.a <- B but A.a <- B.b) | 218 | // If not just key, also set subject attribute (Not A.a <- B but A.a <- B.b) |
214 | if (2 == matches) | 219 | if (2 == matches) |
@@ -252,7 +257,7 @@ abd_string_to_value (void *cls, | |||
252 | cred = GNUNET_ABD_delegate_from_string (s); | 257 | cred = GNUNET_ABD_delegate_from_string (s); |
253 | 258 | ||
254 | *data_size = GNUNET_ABD_delegate_serialize (cred, (char **) data); | 259 | *data_size = GNUNET_ABD_delegate_serialize (cred, (char **) data); |
255 | 260 | GNUNET_free (cred); | |
256 | return GNUNET_OK; | 261 | return GNUNET_OK; |
257 | } | 262 | } |
258 | default: | 263 | default: |