diff options
author | jospaeth <spaethj@in.tum.de> | 2020-09-03 11:13:46 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-09-03 11:13:46 +0200 |
commit | c6fd8f93675ef986184c9a93183e3d7767a4b8ed (patch) | |
tree | 5fc3cccd5cc68793b1cfa025150584c70244cab9 | |
parent | 649777acbf64d2c80c5af67408b2c0f7a959c377 (diff) | |
download | gnunet-c6fd8f93675ef986184c9a93183e3d7767a4b8ed.tar.gz gnunet-c6fd8f93675ef986184c9a93183e3d7767a4b8ed.zip |
fix anchor string parsing
-rw-r--r-- | src/escrow/escrow_api.c | 1 | ||||
-rw-r--r-- | src/escrow/gnunet-escrow.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/escrow/escrow_api.c b/src/escrow/escrow_api.c index 10faed90b..bf712d3de 100644 --- a/src/escrow/escrow_api.c +++ b/src/escrow/escrow_api.c | |||
@@ -455,6 +455,7 @@ GNUNET_ESCROW_anchor_string_to_data (const char *anchorString) | |||
455 | 455 | ||
456 | anchorStringCopy = GNUNET_strdup (anchorString); | 456 | anchorStringCopy = GNUNET_strdup (anchorString); |
457 | anchor = NULL; | 457 | anchor = NULL; |
458 | methodString = egoNameString = anchorDataString = NULL; | ||
458 | 459 | ||
459 | /* parse and decode method */ | 460 | /* parse and decode method */ |
460 | ptr = strtok (anchorStringCopy, delimiter); | 461 | ptr = strtok (anchorStringCopy, delimiter); |
diff --git a/src/escrow/gnunet-escrow.c b/src/escrow/gnunet-escrow.c index 2130b19fc..705d09d11 100644 --- a/src/escrow/gnunet-escrow.c +++ b/src/escrow/gnunet-escrow.c | |||
@@ -345,7 +345,7 @@ start_process () | |||
345 | case GNUNET_ESCROW_KEY_ANASTASIS: | 345 | case GNUNET_ESCROW_KEY_ANASTASIS: |
346 | fprintf (stdout, "%s\n", anastasis_string); | 346 | fprintf (stdout, "%s\n", anastasis_string); |
347 | break; | 347 | break; |
348 | default: | 348 | default: // GNUNET_ESCROW_KEY_NONE |
349 | fprintf (stdout, "INVALID METHOD\n"); | 349 | fprintf (stdout, "INVALID METHOD\n"); |
350 | } | 350 | } |
351 | cleanup_task = GNUNET_SCHEDULER_add_now (&do_cleanup, NULL); | 351 | cleanup_task = GNUNET_SCHEDULER_add_now (&do_cleanup, NULL); |