aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/gnunet-reclaim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/gnunet-reclaim.c')
-rw-r--r--src/reclaim/gnunet-reclaim.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reclaim/gnunet-reclaim.c b/src/reclaim/gnunet-reclaim.c
index cefb66b8f..da5f90409 100644
--- a/src/reclaim/gnunet-reclaim.c
+++ b/src/reclaim/gnunet-reclaim.c
@@ -521,7 +521,7 @@ iter_cb (void *cls,
521 char *id; 521 char *id;
522 const char *attr_type; 522 const char *attr_type;
523 523
524 if ((NULL != attr_name) && (NULL != claim)) 524 if ((NULL != attr_name) && (NULL == claim))
525 { 525 {
526 if (0 == strcasecmp (attr_name, attr->name)) 526 if (0 == strcasecmp (attr_name, attr->name))
527 { 527 {
@@ -530,6 +530,7 @@ iter_cb (void *cls,
530 attr->type, 530 attr->type,
531 attr->data, 531 attr->data,
532 attr->data_size); 532 attr->data_size);
533 claim->id = attr->id;
533 } 534 }
534 } 535 }
535 else if (issue_attrs) 536 else if (issue_attrs)
@@ -830,7 +831,7 @@ main (int argc, char *const argv[])
830 GNUNET_GETOPT_option_string ('a', 831 GNUNET_GETOPT_option_string ('a',
831 "add", 832 "add",
832 "NAME", 833 "NAME",
833 gettext_noop ("Add an attribute NAME"), 834 gettext_noop ("Add or update an attribute NAME"),
834 &attr_name), 835 &attr_name),
835 GNUNET_GETOPT_option_string ('d', 836 GNUNET_GETOPT_option_string ('d',
836 "delete", 837 "delete",