[PATCH 4.9] X.509: fix NULL dereference when restricting key with unsupported_sig