[PATCH 4.14 12/54] X.509: fix NULL dereference when restricting key with unsupported_sig