aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-15 17:20:43 -0400
committerJack Lloyd <[email protected]>2018-03-15 17:20:43 -0400
commit5a0598bde3edf9d0a597ad1414722ee8d9cf226f (patch)
treeb28cf5abb0b2392b6664bc2da37aef5a33455046 /src
parentab87904caa2c7c734da59facea39862e909316e3 (diff)
Fix incorrect return value check
Diffstat (limited to 'src')
-rwxr-xr-xsrc/python/botan2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/botan2.py b/src/python/botan2.py
index 85bf53235..0b591b039 100755
--- a/src/python/botan2.py
+++ b/src/python/botan2.py
@@ -44,7 +44,7 @@ def load_botan_dll(expected_version):
dll = CDLL(dll_name)
dll.botan_ffi_supports_api.argtypes = [c_uint32]
dll.botan_ffi_supports_api.restype = c_int
- if dll.botan_ffi_supports_api(expected_version) == 1:
+ if dll.botan_ffi_supports_api(expected_version) == 0:
return dll
except OSError:
pass