diff options
Diffstat (limited to 'AFBClient.cpp')
-rw-r--r-- | AFBClient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AFBClient.cpp b/AFBClient.cpp index fbffb2c..1677509 100644 --- a/AFBClient.cpp +++ b/AFBClient.cpp @@ -172,7 +172,7 @@ int AFBClient::Impl::init(int port, char const *token) { } } - if (port < 1 && port > 0xffff) { + if (port < 1 || port > 0xffff) { fputs("Port is invalid\n", stderr); rc = -EINVAL; goto fail; |