Commit a3004c82 authored by Jon Spillett's avatar Jon Spillett Committed by Rich Salz
Browse files

Check for zero records and return immediately

parent fd74aba8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -740,6 +740,9 @@ int tls1_enc(SSL *s, SSL3_RECORD *recs, size_t n_recs, int send)
    int imac_size;
    const EVP_CIPHER *enc;

    if (n_recs == 0)
        return 0;

    if (send) {
        if (EVP_MD_CTX_md(s->write_hash)) {
            int n = EVP_MD_CTX_size(s->write_hash);