apps/s_time.c:428: error: UNINITIALIZED_VALUE
  The value read from i was never initialized.
Showing all 1 steps of the trace


apps/s_time.c:428:9: 
426.           break;
427.       }
428. >     if (i <= 0) {
429.           BIO_printf(bio_err, "ERROR\n");
430.           if (verify_args.error != X509_V_OK)

static SSL *doConnection(SSL *scon, const char *host, SSL_CTX *ctx)
{
    BIO *conn;
    SSL *serverCon;
    int width, i;
    fd_set readfds;
    if ((conn = BIO_new(BIO_s_connect())) == NULL)
        return NULL;
    BIO_set_conn_hostname(conn, host);
    if (scon == NULL)
        serverCon = SSL_new(ctx);
    else {
        serverCon = scon;
        SSL_set_connect_state(serverCon);
    }
    SSL_set_bio(serverCon, conn, conn);
    for (;;) {
        i = SSL_connect(serverCon);
        if (BIO_sock_should_retry(i)) {
            BIO_printf(bio_err, "DELAY\n");
            i = SSL_get_fd(serverCon);
            width = i + 1;
            FD_ZERO(&readfds);
            openssl_fdset(i, &readfds);
            select(width, (void *)&readfds, NULL, NULL, NULL);
            continue;
        }
        break;
    }
    if (i <= 0) {
        BIO_printf(bio_err, "ERROR\n");
        if (verify_args.error != X509_V_OK)
            BIO_printf(bio_err, "verify error:%s\n",
                       X509_verify_cert_error_string(verify_args.error));
        else
            ERR_print_errors(bio_err);
        if (scon == NULL)
            SSL_free(serverCon);
        return NULL;
    }
    return serverCon;
}
['static SSL *doConnection(SSL *scon, const char *host, SSL_CTX *ctx)\n{\n    BIO *conn;\n    SSL *serverCon;\n    int width, i;\n    fd_set readfds;\n    if ((conn = BIO_new(BIO_s_connect())) == NULL)\n        return NULL;\n    BIO_set_conn_hostname(conn, host);\n    if (scon == NULL)\n        serverCon = SSL_new(ctx);\n    else {\n        serverCon = scon;\n        SSL_set_connect_state(serverCon);\n    }\n    SSL_set_bio(serverCon, conn, conn);\n    for (;;) {\n        i = SSL_connect(serverCon);\n        if (BIO_sock_should_retry(i)) {\n            BIO_printf(bio_err, "DELAY\\n");\n            i = SSL_get_fd(serverCon);\n            width = i + 1;\n            FD_ZERO(&readfds);\n            openssl_fdset(i, &readfds);\n            select(width, (void *)&readfds, NULL, NULL, NULL);\n            continue;\n        }\n        break;\n    }\n    if (i <= 0) {\n        BIO_printf(bio_err, "ERROR\\n");\n        if (verify_args.error != X509_V_OK)\n            BIO_printf(bio_err, "verify error:%s\\n",\n                       X509_verify_cert_error_string(verify_args.error));\n        else\n            ERR_print_errors(bio_err);\n        if (scon == NULL)\n            SSL_free(serverCon);\n        return NULL;\n    }\n    return serverCon;\n}']