From cbf36765a2be3d7c508f2f0dd75e8d412c8edec6 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Wed, 5 Feb 2014 17:15:19 +0100 Subject: [PATCH] fix str2host for eui48 and eui64. --- str2host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/str2host.c b/str2host.c index 26cef3d0..40170fd3 100644 --- a/str2host.c +++ b/str2host.c @@ -1364,7 +1364,7 @@ ldns_str2rdf_eui48(ldns_rdf **rd, const char *str) if (sscanf(str, "%2x-%2x-%2x-%2x-%2x-%2x%n", &a, &b, &c, &d, &e, &f, &l) != 6 || l != (int)strlen(str) || /* more data to read */ - strpbrk(str, "+-") /* signed hexes */ + strpbrk(str, "+") /* signed hexes */ ) { return LDNS_STATUS_INVALID_EUI48; } else { @@ -1389,7 +1389,7 @@ ldns_str2rdf_eui64(ldns_rdf **rd, const char *str) if (sscanf(str, "%2x-%2x-%2x-%2x-%2x-%2x-%2x-%2x%n", &a, &b, &c, &d, &e, &f, &g, &h, &l) != 8 || l != (int)strlen(str) || /* more data to read */ - strpbrk(str, "+-") /* signed hexes */ + strpbrk(str, "+") /* signed hexes */ ) { return LDNS_STATUS_INVALID_EUI64; } else { -- 2.47.3