The x509_name_canon function doesn't check for an error return
authorMatt Caswell <matt@openssl.org>
Thu, 28 Apr 2016 16:05:21 +0000 (17:05 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 29 Apr 2016 15:47:41 +0000 (16:47 +0100)
commited3eb5e0cca0ac88908e5d718ac0137d0150ddb3
tree245dcd9bbb4c5233fe78ccfe3514a05e11f16b54
parent3b7a71b2f026702877d8cf4240996f71ae2ff55a
The x509_name_canon function doesn't check for an error return

i2d_name_canon can return a negative number on error. We should check it
before continuing.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/x509/x_name.c