Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
09ce307b
Commit
09ce307b
authored
Sep 25, 2017
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable libIDN2 underscore workaround with libIDN or fixed libIDN2.
parent
a3303e19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/util.c
src/util.c
+7
-5
No files found.
src/util.c
View file @
09ce307b
...
@@ -200,18 +200,20 @@ char *canonicalise(char *in, int *nomem)
...
@@ -200,18 +200,20 @@ char *canonicalise(char *in, int *nomem)
if
(
!
(
rc
=
check_name
(
in
)))
if
(
!
(
rc
=
check_name
(
in
)))
return
NULL
;
return
NULL
;
#if defined(HAVE_
IDN) || defined(HAVE_LIBIDN2
)
#if defined(HAVE_
LIBIDN2) && (!defined(IDN2_VERSION_NUMBER) || IDN2_VERSION_NUMBER < 0x02000003
)
/* libidn2 strips underscores, so don't do IDN processing
/*
older
libidn2 strips underscores, so don't do IDN processing
if the name has an underscore (check_name() returned 2) */
if the name has an underscore (check_name() returned 2) */
if
(
rc
!=
2
)
if
(
rc
!=
2
)
#endif
#if defined(HAVE_IDN) || defined(HAVE_LIBIDN2)
{
{
#ifdef HAVE_LIBIDN2
#
ifdef HAVE_LIBIDN2
rc
=
idn2_to_ascii_lz
(
in
,
&
ret
,
IDN2_NONTRANSITIONAL
);
rc
=
idn2_to_ascii_lz
(
in
,
&
ret
,
IDN2_NONTRANSITIONAL
);
if
(
rc
==
IDN2_DISALLOWED
)
if
(
rc
==
IDN2_DISALLOWED
)
rc
=
idn2_to_ascii_lz
(
in
,
&
ret
,
IDN2_TRANSITIONAL
);
rc
=
idn2_to_ascii_lz
(
in
,
&
ret
,
IDN2_TRANSITIONAL
);
#else
#
else
rc
=
idna_to_ascii_lz
(
in
,
&
ret
,
0
);
rc
=
idna_to_ascii_lz
(
in
,
&
ret
,
0
);
#endif
#
endif
if
(
rc
!=
IDNA_SUCCESS
)
if
(
rc
!=
IDNA_SUCCESS
)
{
{
if
(
ret
)
if
(
ret
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment