X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/c02fba3b053260d364ac3750f886dc057949ceb9..30ba82a584441fc730ad733081805d15fd07bd09:/site.c diff --git a/site.c b/site.c index c702c78..4ec56df 100644 --- 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; - if (!consttime_memeq(m->nR,st->remoteN,NONCELEN)!=0) { + if (!consttime_memeq(m->nR,st->remoteN,NONCELEN)) { *error="wrong remotely-generated nonce"; return False; }