aboutsummaryrefslogtreecommitdiff
path: root/internal/stupidgcm/locking.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/stupidgcm/locking.go')
-rw-r--r--internal/stupidgcm/locking.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/stupidgcm/locking.go b/internal/stupidgcm/locking.go
index 06add56..88f0900 100644
--- a/internal/stupidgcm/locking.go
+++ b/internal/stupidgcm/locking.go
@@ -13,7 +13,7 @@ static void dummy_callback(int mode, int n, const char *file, int line) {
printf("stupidgcm: thread locking is not implemented and should not be "
"needed. Please upgrade openssl.\n");
// panic
- *((int*)0)=0;
+ __builtin_trap();
}
static void set_dummy_callback() {
CRYPTO_set_locking_callback(dummy_callback);