The branch master has been updated
via b5f40eb279e37c86d0634db5ffcc37517ea97694 (commit)
from 748f254657ab900c0de5e9e1843150c2df4c4bea (commit)
- Log -----------------------------------------------------------------
commit b5f40eb279e37c86d0634db5ffcc37517ea97694
Author: Viktor Dukhovni <[email protected]>
Date: Wed Mar 16 23:58:58 2016 -0400
Bugfix: Encode the requested length in s_cb.c:hexencode()
Reviewed-by: Rich Salz <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
apps/s_cb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/s_cb.c b/apps/s_cb.c
index 047f2ce..66b2a50 100644
--- a/apps/s_cb.c
+++ b/apps/s_cb.c
@@ -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];
}
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits