File: isys.c
Function: doPrefixToNetmask
Error: returning (PyObject*)NULL without setting an exception
260 static PyObject * doPrefixToNetmask (PyObject * s, PyObject * args) {
261     int prefix = 0;
262     struct in_addr *mask = NULL;
263     char dst[INET_ADDRSTRLEN+1];
264 
265     if (!PyArg_ParseTuple(args, "i", &prefix))
266         return NULL;
when PyArg_ParseTuple() succeeds
taking False path
267 
268     if ((mask = iface_prefix2netmask(prefix)) == NULL)
269         return NULL;
when treating unknown struct in_addr * from isys.c:269 as non-NULL
taking False path
270 
271     if (inet_ntop(AF_INET, mask, dst, INET_ADDRSTRLEN) == NULL)
272         return NULL;
when treating unknown const char * from isys.c:272 as NULL
taking True path
273 
274     return Py_BuildValue("s", dst);
275 }
276 
returning (PyObject*)NULL without setting an exception found 1 similar trace(s) to this