projects
/
nbd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e25ba29
)
Fix logic reversal in authorization file
author
Wouter Verhelst <w@uter.be>
Wed, 21 Jul 2010 21:18:34 +0000
(23:18 +0200)
committer
Wouter Verhelst <w@uter.be>
Wed, 21 Jul 2010 21:18:34 +0000
(23:18 +0200)
nbd-server.c
patch
|
blob
|
history
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;
return 0;
}
*(tmp++)=0;
- if(inet_aton(line,&addr)) {
+ if(!inet_aton(line,&addr)) {
msg4(LOG_CRIT, ERRMSG, line, opts->server->authname);
return 0;
}
msg4(LOG_CRIT, ERRMSG, line, opts->server->authname);
return 0;
}