Skip to content

Commit

Permalink
Merge pull request #38 from Nooxet/patch-1
Browse files Browse the repository at this point in the history
Fixed issue #36
  • Loading branch information
asolino authored Oct 30, 2017
2 parents 342e37c + f4d87c0 commit e8d0886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcapobj.cc
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ p_sendpacket(register pcapobject* pp, PyObject* args)
static PyObject*
p_getfd(register pcapobject* pp, PyObject* args)
{
if (pp->ob_type != &Pcaptype)
if (Py_TYPE(pp) != &Pcaptype)
{
PyErr_SetString(PcapError, "Not a pcap object");
return NULL;
Expand Down

0 comments on commit e8d0886

Please sign in to comment.