diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-08-13 19:55:48 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-08-13 19:55:48 +0000 |
commit | d8a87627ebba806594ad8745fa9bb7ae1c113720 (patch) | |
tree | b4dc5e39478af7c7667526ba5c04ca3487da2df1 /src/gns | |
parent | e401a0fbdb00a5cddef4552f185f9b861089ac87 (diff) | |
download | gnunet-d8a87627ebba806594ad8745fa9bb7ae1c113720.tar.gz gnunet-d8a87627ebba806594ad8745fa9bb7ae1c113720.zip |
-fix hang for good
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-dns2gns.c | 5 | ||||
-rw-r--r-- | src/gns/gnunet-gns.c | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/gnunet-dns2gns.c b/src/gns/gnunet-dns2gns.c index 8ede2a18f..893d592eb 100644 --- a/src/gns/gnunet-dns2gns.c +++ b/src/gns/gnunet-dns2gns.c | |||
@@ -210,9 +210,8 @@ result_processor (void *cls, | |||
210 | packet->flags.zero = 0; | 210 | packet->flags.zero = 0; |
211 | packet->flags.recursion_available = 1; | 211 | packet->flags.recursion_available = 1; |
212 | packet->flags.message_truncated = 0; | 212 | packet->flags.message_truncated = 0; |
213 | packet->flags.authoritative_answer = 1; | 213 | packet->flags.authoritative_answer = 0; |
214 | packet->flags.opcode = GNUNET_DNSPARSER_OPCODE_QUERY; | 214 | //packet->flags.opcode = GNUNET_DNSPARSER_OPCODE_STATUS; // ??? |
215 | packet->num_additional_records = 0; | ||
216 | for (i=0;i<rd_count;i++) | 215 | for (i=0;i<rd_count;i++) |
217 | { | 216 | { |
218 | switch (rd[i].record_type) | 217 | switch (rd[i].record_type) |
diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c index c7cc12978..21cc50c26 100644 --- a/src/gns/gnunet-gns.c +++ b/src/gns/gnunet-gns.c | |||
@@ -335,6 +335,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
335 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 335 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
336 | "Please specify lookup, shorten or authority operation!\n"); | 336 | "Please specify lookup, shorten or authority operation!\n"); |
337 | GNUNET_SCHEDULER_add_now (&do_shutdown, NULL); | 337 | GNUNET_SCHEDULER_add_now (&do_shutdown, NULL); |
338 | return; | ||
338 | } | 339 | } |
339 | 340 | ||
340 | shutdown_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, | 341 | shutdown_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, |