Commit c6273fa
committed
Fix incorrect error code propagation in CodeSignatureInfo.load
In the CodeSignatureInfo.load method, when SecCodeCopySigningInformation fails,
the code was incorrectly throwing MacError(result) instead of MacError(result2).
This caused misleading error messages since it propagated the error code from
the previous SecStaticCodeCreateWithPath call rather than the actual failing
SecCodeCopySigningInformation call.
The fix ensures accurate error reporting for code signing verification failures.1 parent 3a6915e commit c6273fa
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
0 commit comments