encrypted_client_hello extension cannot be referred to by ech_outer_extensions
diff --git a/lib/picotls.c b/lib/picotls.c
index 5a8e1c9..c742075 100644
--- a/lib/picotls.c
+++ b/lib/picotls.c
@@ -3737,6 +3737,10 @@
                                 uint16_t outersize;
                                 if ((ret = ptls_decode16(&reftype, src, end)) != 0)
                                     goto Exit;
+                                if (reftype == PTLS_EXTENSION_TYPE_ENCRYPTED_CLIENT_HELLO) {
+                                    ret = PTLS_ALERT_ILLEGAL_PARAMETER;
+                                    goto Exit;
+                                }
                                 while (1) {
                                     if (ptls_decode16(&outertype, &outer_ext, outer_ext_end) != 0 ||
                                         ptls_decode16(&outersize, &outer_ext, outer_ext_end) != 0) {