diff options
| author | Roland Shoemaker <roland@golang.org> | 2022-10-03 09:19:32 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-10-04 16:03:32 +0000 |
| commit | fa463cc96d797c218be4e218723f83be47e814c8 (patch) | |
| tree | b578f0a5636d321b7c351743ac5d3476c63f998c /src/cmd | |
| parent | 6a9aaf1f0218d61aa44c3a0ae0bce03cbac93328 (diff) | |
| download | go-fa463cc96d797c218be4e218723f83be47e814c8.tar.xz | |
crypto/x509/internal/macos: handle unexpected null returns
SecCreatePolicySSL returns null when called from a binary that has a
strange path. This seems to be a weirdo macos bug, but we should be
properly handling those null returns anyway. Also add handling for
SecTrustGetCertificateAtIndex.
Fixes #54590
Change-Id: I251e74f3b0bf65890a80b094b3e88718e13fd3db
Reviewed-on: https://go-review.googlesource.com/c/go/+/438135
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Roland Shoemaker <roland@golang.org>
Diffstat (limited to 'src/cmd')
0 files changed, 0 insertions, 0 deletions
