Do not set a nonzero default max_early_data
[openssl.git] / apps / s_server.c
index c772069..ff9ee5a 100644 (file)
@@ -1570,6 +1570,8 @@ int s_server_main(int argc, char *argv[])
             break;
         case OPT_EARLY_DATA:
             early_data = 1;
+            if (max_early_data == -1)
+                max_early_data = SSL3_RT_MAX_PLAIN_LENGTH;
             break;
         }
     }