Garbage collect another unused variable.
authorjca <jca@openbsd.org>
Mon, 25 Oct 2021 11:47:39 +0000 (11:47 +0000)
committerjca <jca@openbsd.org>
Mon, 25 Oct 2021 11:47:39 +0000 (11:47 +0000)
Spotted by egcc and probably clang 13.  ok tb@

usr.bin/openssl/s_client.c

index 3a5355b..1e93222 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_client.c,v 1.55 2021/10/22 09:44:58 tb Exp $ */
+/* $OpenBSD: s_client.c,v 1.56 2021/10/25 11:47:39 jca Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -894,7 +894,6 @@ s_client_main(int argc, char **argv)
        char *cbuf = NULL, *sbuf = NULL, *mbuf = NULL, *pbuf = NULL;
        int cbuf_len, cbuf_off;
        int sbuf_len, sbuf_off;
-       int pbuf_len;
        int full_log = 1;
        char *pass = NULL;
        X509 *cert = NULL;
@@ -1195,7 +1194,6 @@ s_client_main(int argc, char **argv)
        cbuf_off = 0;
        sbuf_len = 0;
        sbuf_off = 0;
-       pbuf_len = 0;
 
        /* This is an ugly hack that does a lot of assumptions */
        /*
@@ -1502,7 +1500,6 @@ s_client_main(int argc, char **argv)
                                if (SSL_get_error(con, p) == SSL_ERROR_NONE) {
                                        if (p <= 0)
                                                goto end;
-                                       pbuf_len = p;
 
                                        k = SSL_read(con, sbuf, p);
                                }