From: W.C.A. Wijngaards Date: Wed, 5 Feb 2014 16:15:19 +0000 (+0100) Subject: fix str2host for eui48 and eui64. X-Git-Tag: release-1.7.0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbf36765a2be3d7c508f2f0dd75e8d412c8edec6;p=thirdparty%2Fldns.git fix str2host for eui48 and eui64. --- 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 {