diff options
Diffstat (limited to 'src/gnsrecord')
-rw-r--r-- | src/gnsrecord/plugin_gnsrecord_dns.c | 5 |
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 | */ |
267 | static unsigned int | 267 | static unsigned int |
268 | rfc4394_mnemonic_to_value (const char *mnemonic) | 268 | rfc4398_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))) && |