Skip to content

Commit 4197348

Browse files
committed
Don't try to deref a pointer with cffi when doing a null check
This causes issues with pointers to opaque structs
1 parent 8dab946 commit 4197348

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

oscrypto/_ffi.py

-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ def is_null(point):
111111
return True
112112
if ffi.getctype(ffi.typeof(point)) == 'void *':
113113
return False
114-
if point[0] == ffi.NULL:
115-
return True
116114
return False
117115

118116
def errno():

0 commit comments

Comments
 (0)