Code Review
/
staging
/
windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
AFBClient: fix port sanity check
[staging/windowmanager.git]
/
AFBClient.cpp
diff --git
a/AFBClient.cpp
b/AFBClient.cpp
index
fbffb2c
..
1677509
100644
(file)
--- 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;