diff options
Diffstat (limited to 'src/namestore/gnunet-namestore-zonefile.c')
-rw-r--r-- | src/namestore/gnunet-namestore-zonefile.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/namestore/gnunet-namestore-zonefile.c b/src/namestore/gnunet-namestore-zonefile.c index 5cf25abec..f8d876108 100644 --- a/src/namestore/gnunet-namestore-zonefile.c +++ b/src/namestore/gnunet-namestore-zonefile.c | |||
@@ -271,13 +271,11 @@ parse_origin (char *token, char *origin) | |||
271 | { | 271 | { |
272 | char *next; | 272 | char *next; |
273 | next = strchr (token, ';'); | 273 | next = strchr (token, ';'); |
274 | if (NULL == next) | 274 | if (NULL != next) |
275 | return GNUNET_SYSERR; | 275 | next[0] = '\0'; |
276 | next[0] = '\0'; | ||
277 | next = strchr (token, ' '); | 276 | next = strchr (token, ' '); |
278 | if (NULL == next) | 277 | if (NULL != next) |
279 | return GNUNET_SYSERR; | 278 | next[0] = '\0'; |
280 | next[0] = '\0'; | ||
281 | strcpy (origin, token); | 279 | strcpy (origin, token); |
282 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Origin is: %s\n", origin); | 280 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Origin is: %s\n", origin); |
283 | return GNUNET_OK; | 281 | return GNUNET_OK; |
@@ -495,6 +493,7 @@ parse (void *cls) | |||
495 | { | 493 | { |
496 | if (GNUNET_SYSERR == parse_ttl (token, &ttl)) | 494 | if (GNUNET_SYSERR == parse_ttl (token, &ttl)) |
497 | { | 495 | { |
496 | fprintf (stderr, _("Failed to parse $TTL\n")); | ||
498 | ret = 1; | 497 | ret = 1; |
499 | GNUNET_SCHEDULER_shutdown (); | 498 | GNUNET_SCHEDULER_shutdown (); |
500 | return; | 499 | return; |
@@ -505,6 +504,7 @@ parse (void *cls) | |||
505 | { | 504 | { |
506 | if (GNUNET_SYSERR == parse_origin (token, origin)) | 505 | if (GNUNET_SYSERR == parse_origin (token, origin)) |
507 | { | 506 | { |
507 | fprintf (stderr, _("Failed to parse $ORIGIN from %s\n"), token); | ||
508 | ret = 1; | 508 | ret = 1; |
509 | GNUNET_SCHEDULER_shutdown (); | 509 | GNUNET_SCHEDULER_shutdown (); |
510 | return; | 510 | return; |