x509: remove dead call to strlen()
authorPauli <pauli@openssl.org>
Mon, 8 Nov 2021 01:27:59 +0000 (11:27 +1000)
committerPauli <pauli@openssl.org>
Tue, 9 Nov 2021 10:02:14 +0000 (20:02 +1000)
commita18cdd28077be05ec88538be84a761469f3f20c4
tree28497478b9af6a22e88e6fa2cd6722f87e91bcf2
parent64c428c35053a101a452c42d5d0a9a8342493606
x509: remove dead call to strlen()

The condition `userlen == -1` isn't possible because this is already checked
on line 159 above and the subsequent strlen(3) call guarantees that it's value
is positive.

Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
(Merged from https://github.com/openssl/openssl/pull/16987)
crypto/x509/v3_sxnet.c