~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Makefile.in: Drop dist target
[secnet]
/
site.c
diff --git
a/site.c
b/site.c
index
c702c78
..
d0dd909
100644
(file)
--- a/
site.c
+++ b/
site.c
@@
-767,7
+767,7
@@
static bool_t check_msg(struct site *st, uint32_t type, struct msg *m,
return False;
}
if (type==LABEL_MSG2) return True;
return False;
}
if (type==LABEL_MSG2) return True;
- if (!consttime_memeq(m->nR,st->remoteN,NONCELEN)
!=0
) {
+ if (!consttime_memeq(m->nR,st->remoteN,NONCELEN)) {
*error="wrong remotely-generated nonce";
return False;
}
*error="wrong remotely-generated nonce";
return False;
}
@@
-1781,8
+1781,8
@@
static bool_t named_for_us(struct site *st, const struct buffer_if *buf_in,
}
static bool_t we_have_priority(struct site *st, const struct msg *m) {
}
static bool_t we_have_priority(struct site *st, const struct msg *m) {
- if (
(st->local_capabilities & m->remote_capabilities)
-
&&
CAPAB_PRIORITY_MOBILE) {
+ if (
st->local_capabilities & m->remote_capabilities &
+ CAPAB_PRIORITY_MOBILE) {
if (st->local_mobile) return True;
if (st-> peer_mobile) return False;
}
if (st->local_mobile) return True;
if (st-> peer_mobile) return False;
}