diff options
author | Simon Farnsworth <simon.farnsworth@onelan.co.uk> | 2015-03-25 17:00:09 +0000 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-04-12 10:20:36 -0400 |
commit | 9f1a574d50c1ffd19f18805cc8a3a433c4f2da37 (patch) | |
tree | efe08096bac03163e1248668b3c8d3110bb70891 /src/python-systemd/_daemon.c | |
parent | 776c441941632c9bf0fb97a78e4127aff4a60e4e (diff) |
python-systemd: fix is_socket_inet to cope with ports
Just a couple of trivial oversights.
Diffstat (limited to 'src/python-systemd/_daemon.c')
-rw-r--r-- | src/python-systemd/_daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python-systemd/_daemon.c b/src/python-systemd/_daemon.c index 65cfec7ce8..7c5f1b2bb6 100644 --- a/src/python-systemd/_daemon.c +++ b/src/python-systemd/_daemon.c @@ -225,7 +225,7 @@ static PyObject* is_socket_inet(PyObject *self, PyObject *args) { &fd, &family, &type, &listening, &port)) return NULL; - if (port < 0 || port > INT16_MAX) { + if (port < 0 || port > UINT16_MAX) { set_error(-EINVAL, NULL, "port must fit into uint16_t"); return NULL; } |