aboutsummaryrefslogtreecommitdiff
path: root/src/gnsrecord/plugin_gnsrecord_dns.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-06 15:24:26 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-06 15:24:26 +0000
commit3d7bae58c4b9b128e6000a2fe1fe65595235bb14 (patch)
treed50cfa569c5d447da5663333e61964c47ac09f73 /src/gnsrecord/plugin_gnsrecord_dns.c
parent6cef8fea0c3b6756870786ebc4db0588373c8f65 (diff)
downloadgnunet-3d7bae58c4b9b128e6000a2fe1fe65595235bb14.tar.gz
gnunet-3d7bae58c4b9b128e6000a2fe1fe65595235bb14.zip
misc fixes
Diffstat (limited to 'src/gnsrecord/plugin_gnsrecord_dns.c')
-rw-r--r--src/gnsrecord/plugin_gnsrecord_dns.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gnsrecord/plugin_gnsrecord_dns.c b/src/gnsrecord/plugin_gnsrecord_dns.c
index 09125b9d5..aa64f0dd6 100644
--- a/src/gnsrecord/plugin_gnsrecord_dns.c
+++ b/src/gnsrecord/plugin_gnsrecord_dns.c
@@ -265,7 +265,7 @@ dns_value_to_string (void *cls,
265 * @return the value, 0 if not found 265 * @return the value, 0 if not found
266 */ 266 */
267static unsigned int 267static unsigned int
268rfc4394_mnemonic_to_value (const char *mnemonic) 268rfc4398_mnemonic_to_value (const char *mnemonic)
269{ 269{
270 static struct { 270 static struct {
271 const char *mnemonic; 271 const char *mnemonic;
@@ -425,7 +425,7 @@ dns_string_to_value (void *cls,
425 sdup = GNUNET_strdup (s); 425 sdup = GNUNET_strdup (s);
426 typep = strtok (sdup, " "); 426 typep = strtok (sdup, " ");
427 if ( (NULL == typep) || 427 if ( (NULL == typep) ||
428 ( (0 == (type = rfc4394_mnemonic_to_value (typep))) && 428 ( (0 == (type = rfc4398_mnemonic_to_value (typep))) &&
429 ( (1 != SSCANF (typep, 429 ( (1 != SSCANF (typep,
430 "%u", 430 "%u",
431 &type)) || 431 &type)) ||
@@ -444,6 +444,7 @@ dns_string_to_value (void *cls,
444 GNUNET_free (sdup); 444 GNUNET_free (sdup);
445 return GNUNET_SYSERR; 445 return GNUNET_SYSERR;
446 } 446 }
447 alg = 0;
447 algp = strtok (NULL, " "); 448 algp = strtok (NULL, " ");
448 if ( (NULL == algp) || 449 if ( (NULL == algp) ||
449 ( (0 == (type = rfc4034_mnemonic_to_value (typep))) && 450 ( (0 == (type = rfc4034_mnemonic_to_value (typep))) &&