]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
For #314: Update to not replace SWIG_FromCharPtrAndSize. develop
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 5 Aug 2026 14:55:08 +0000 (16:55 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 5 Aug 2026 14:55:08 +0000 (16:55 +0200)
contrib/python/ldns.i

index 64518fda242dfa585b0646d07b6f13a2fe614534..4653ae44d78c0c5c5660fd139b0ac8003afa71ae 100644 (file)
@@ -414,7 +414,7 @@ PyObject* ldns_pkt2wire_(const ldns_pkt *pkt)
   tuple = PyTuple_New(2);
   PyTuple_SetItem(tuple, 0, SWIG_From_int(result));
   if (result == LDNS_STATUS_OK)
-     PyTuple_SetItem(tuple, 1, PyUnicode_FromStringAndSize((char *)arg1, arg3));
+     PyTuple_SetItem(tuple, 1, SWIG_FromCharPtrAndSize((char *)arg1, arg3));
   else {
      Py_INCREF(Py_None);
      PyTuple_SetItem(tuple, 1, Py_None);