Commit b5f40eb2 authored by Viktor Dukhovni's avatar Viktor Dukhovni
Browse files

Bugfix: Encode the requested length in s_cb.c:hexencode()



Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 748f2546
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1106,7 +1106,7 @@ static char *hexencode(const unsigned char *data, size_t len)
    }
    cp = out = app_malloc(ilen, "TLSA hex data buffer");

    while (ilen-- > 0) {
    while (len-- > 0) {
        *cp++ = hex[(*data >> 4) & 0x0f];
        *cp++ = hex[*data++ & 0x0f];
    }