Commit 6957d91f authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix the buffer sizing in the fatalerrtest

parent 236e3731
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
    }

    /* SSL_read()/SSL_write should fail because of a previous fatal error */
    if ((len = SSL_read(sssl, buf, sizeof(buf - 1))) > 0) {
    if ((len = SSL_read(sssl, buf, sizeof(buf) - 1)) > 0) {
        buf[len] = '\0';
        printf("Unexpected success reading data: %s\n", buf);
        goto err;