diff options
| author | Adam Tkac <atkac@fedoraproject.org> | 2007-12-20 13:46:29 +0000 |
|---|---|---|
| committer | Adam Tkac <atkac@fedoraproject.org> | 2007-12-20 13:46:29 +0000 |
| commit | ed104584a85d16620dfbebd8404e8a7d2df73085 (patch) | |
| tree | 902a4db499433156b80ee3d355fffbbf5610c08b /bind-9.5-libidn3.patch | |
| parent | b4f38cb1878c3ac69efaedf5e6f06057faa87a94 (diff) | |
| download | bind-ed104584a85d16620dfbebd8404e8a7d2df73085.tar.gz bind-ed104584a85d16620dfbebd8404e8a7d2df73085.tar.xz bind-ed104584a85d16620dfbebd8404e8a7d2df73085.zip | |
- fixed regression caused by libidn2 patch (#426348)bind-9_5_0-22_b1_fc9
Diffstat (limited to 'bind-9.5-libidn3.patch')
| -rw-r--r-- | bind-9.5-libidn3.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bind-9.5-libidn3.patch b/bind-9.5-libidn3.patch new file mode 100644 index 0000000..3fd5573 --- /dev/null +++ b/bind-9.5-libidn3.patch @@ -0,0 +1,21 @@ +diff -up bind-9.5.0b1/bin/dig/dighost.c.libidn3 bind-9.5.0b1/bin/dig/dighost.c +--- bind-9.5.0b1/bin/dig/dighost.c.libidn3 2007-12-20 13:24:27.000000000 +0100 ++++ bind-9.5.0b1/bin/dig/dighost.c 2007-12-20 13:27:10.000000000 +0100 +@@ -1859,10 +1859,13 @@ setup_lookup(dig_lookup_t *lookup) { + if (lookup->origin != NULL) { + result = libidn_locale_to_utf8 (lookup->origin->origin, utf8_str); + check_result (result, "convert origin to UTF-8"); +- if (len + strlen (utf8_str) < MXNAME) +- (void) strcpy (utf8_name + len, utf8_str); +- else +- fatal ("Too long name + origin"); ++ if (len > 0 && utf8_name[len - 1] != '.') { ++ utf8_name[len++] = '.'; ++ if (len + strlen (utf8_str) < MXNAME) ++ (void) strcpy (utf8_name + len, utf8_str); ++ else ++ fatal ("Too long name + origin"); ++ } + } + + result = libidn_utf8_to_ascii (utf8_name, ascii_name); |
