Commit 06c6a2b4 authored by Emilia Kasper's avatar Emilia Kasper
Browse files

Harmonize return values in dtls1_buffer_record



Ensure all malloc failures return -1.

Reported by Adam Langley (Google).

Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
parent 460e920d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -231,7 +231,7 @@ dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority)
            pitem_free(item);

        SSLerr(SSL_F_DTLS1_BUFFER_RECORD, ERR_R_INTERNAL_ERROR);
        return (0);
        return -1;
    }

    rdata->packet = s->packet;