From be02ca5ca2d4aa1117b4fc55d47f18f9bb01957e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de>
Date: Thu, 28 Jun 2018 13:14:45 +0200
Subject: [PATCH] Add missing errors in idn2_strerror_name()

---
 lib/error.c | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/lib/error.c b/lib/error.c
index 9a5179c..9ab4fb1 100644
--- a/lib/error.c
+++ b/lib/error.c
@@ -230,11 +230,15 @@ idn2_strerror_name (int rc)
       p = ERR2STR (IDN2_UALABEL_MISMATCH);
       break;
 
+    case IDN2_INVALID_FLAGS:
+      p = ERR2STR (IDN2_INVALID_FLAGS);
+      break;
+
     case IDN2_NOT_NFC:
       p = ERR2STR (IDN2_NOT_NFC);
       break;
 
-    case IDN2_2HYPHEN:
+  case IDN2_2HYPHEN:
       p = ERR2STR (IDN2_2HYPHEN);
       break;
 
@@ -274,6 +278,18 @@ idn2_strerror_name (int rc)
       p = ERR2STR (IDN2_BIDI);
       break;
 
+    case IDN2_DOT_IN_LABEL:
+      p = ERR2STR (IDN2_DOT_IN_LABEL);
+      break;
+
+    case IDN2_INVALID_TRANSITIONAL:
+      p = ERR2STR (IDN2_INVALID_TRANSITIONAL);
+      break;
+
+    case IDN2_INVALID_NONTRANSITIONAL:
+      p = ERR2STR (IDN2_INVALID_NONTRANSITIONAL);
+      break;
+
     default:
       p = "IDN2_UNKNOWN";
       break;
-- 
1.8.3.1

