View | Details | Raw Unified | Return to bug 1225551
Collapse All | Expand All

(-)openssl-1.1.1l/ssl/record/ssl3_buffer.c (+2 lines)
Lines 174-178 int ssl3_release_read_buffer(SSL *s) Link Here
174
    b = RECORD_LAYER_get_rbuf(&s->rlayer);
174
    b = RECORD_LAYER_get_rbuf(&s->rlayer);
175
    OPENSSL_free(b->buf);
175
    OPENSSL_free(b->buf);
176
    b->buf = NULL;
176
    b->buf = NULL;
177
    s->rlayer.packet = NULL;
178
    s->rlayer.packet_length = 0;
177
    return 1;
179
    return 1;
178
}
180
}
(-)openssl-1.1.1l/ssl/record/rec_layer_s3.c (+7 lines)
Lines 16-21 Link Here
16
#include <openssl/rand.h>
16
#include <openssl/rand.h>
17
#include "record_local.h"
17
#include "record_local.h"
18
#include "../packet_local.h"
18
#include "../packet_local.h"
19
#include "internal/cryptlib.h"
19
20
20
#if     defined(OPENSSL_SMALL_FOOTPRINT) || \
21
#if     defined(OPENSSL_SMALL_FOOTPRINT) || \
21
        !(      defined(AESNI_ASM) &&   ( \
22
        !(      defined(AESNI_ASM) &&   ( \
Lines 225-230 int ssl3_read_n(SSL *s, size_t n, size_t Link Here
225
        s->rlayer.packet_length = 0;
226
        s->rlayer.packet_length = 0;
226
        /* ... now we can act as if 'extend' was set */
227
        /* ... now we can act as if 'extend' was set */
227
    }
228
    }
229
    if (!ossl_assert(s->rlayer.packet != NULL)) {
230
        /* does not happen */
231
        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_SSL3_READ_N,
232
                 ERR_R_INTERNAL_ERROR);
233
        return -1;
234
    }
228
235
229
    len = s->rlayer.packet_length;
236
    len = s->rlayer.packet_length;
230
    pkt = rb->buf + align;
237
    pkt = rb->buf + align;

Return to bug 1225551