Fix EXTMS error introduced by commit 94ed2c6
[openssl.git] / apps / s_client.c
index 01e285abd342fe0ffd707f5f5ed80845012e1b50..f6b556dd767b991f04701d8409f08085b54c235a 100644 (file)
@@ -1876,14 +1876,10 @@ int s_client_main(int argc, char **argv)
                 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ);
             }
             while (mbuf_len > 3 && mbuf[3] == '-');
-            switch ((PROTOCOL_CHOICE) starttls_proto) {
-                case PROTO_LMTP:
-                    BIO_printf(fbio, "LHLO %s\r\n", ehlo);
-                    break;
-                case PROTO_SMTP:
-                    BIO_printf(fbio, "EHLO %s\r\n", ehlo);
-                    break;
-            }
+            if (starttls_proto == (int)PROTO_LMTP)
+                BIO_printf(fbio, "LHLO %s\r\n", ehlo);
+            else
+                BIO_printf(fbio, "EHLO %s\r\n", ehlo);
             (void)BIO_flush(fbio);
             /*
              * Wait for multi-line response to end LHLO LMTP or EHLO SMTP