Skip to content

Commit

Permalink
Fixed check for libnet_get_ipaddr4.
Browse files Browse the repository at this point in the history
  • Loading branch information
allfro committed Aug 2, 2011
1 parent c35bc1c commit b2fa552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.c
Expand Up @@ -74,7 +74,7 @@ context_init(context *self, PyObject *args, PyObject *kwargs)
}

ipaddr4 = libnet_get_ipaddr4(self->l);
if (ipaddr4 == 0xFFFF) {
if (ipaddr4 == 0xFFFFFFFF) {
PyErr_SetString(PyErr_LibnetError, libnet_geterror(self->l));
return -1;
}
Expand Down

0 comments on commit b2fa552

Please sign in to comment.