projects
/
nbd.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix logic reversal in authorization file
[nbd.git]
/
nbd-server.c
diff --git
a/nbd-server.c
b/nbd-server.c
index
52f777d
..
16d70f7
100644
(file)
--- a/
nbd-server.c
+++ b/
nbd-server.c
@@
-274,7
+274,7
@@
int authorized_client(CLIENT *opts) {
return 0;
}
*(tmp++)=0;
- if(inet_aton(line,&addr)) {
+ if(!inet_aton(line,&addr)) {
msg4(LOG_CRIT, ERRMSG, line, opts->server->authname);
return 0;
}