about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2022-11-14 21:45:08 +0100
committervanhauser-thc <vh@thc.org>2022-11-14 21:45:08 +0100
commit3cc5019fe492176e0cb5dbd446f1fa125ec9d7ed (patch)
treeaf94dc63ce8cd4c3012490ac39ceb0a4ff50f04c
parent57257ce6564b4bf418f92318a4ecaf69a8269d1b (diff)
downloadafl++-3cc5019fe492176e0cb5dbd446f1fa125ec9d7ed.tar.gz
fix warnings
-rw-r--r--src/afl-fuzz-python.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/afl-fuzz-python.c b/src/afl-fuzz-python.c
index 54b05978..d8aed8c6 100644
--- a/src/afl-fuzz-python.c
+++ b/src/afl-fuzz-python.c
@@ -920,21 +920,7 @@ void fuzz_send_py(void *py_mutator, const u8 *buf, size_t buf_size) {
       ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_FUZZ_SEND], py_args);
   Py_DECREF(py_args);
 
-  if (py_value != NULL) {
-
-  #if PY_MAJOR_VERSION >= 3
-    u32 retcnt = (u32)PyLong_AsLong(py_value);
-  #else
-    u32 retcnt = PyInt_AsLong(py_value);
-  #endif
-    Py_DECREF(py_value);
-
-  } else {
-
-    PyErr_Print();
-    FATAL("Call failed");
-
-  }
+  if (py_value != NULL) { Py_DECREF(py_value); }
 
 }