Mercurial > hg > quicktun
diff src/proto.nacltai.c @ 10:1e4ba8d8ffc2
Use strncat, fixed nacltai timestamp check
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sat, 04 Dec 2010 03:01:46 +0100 |
parents | cf9b44b46be5 |
children | 5be1ecb80cc9 |
line wrap: on
line diff
--- a/src/proto.nacltai.c Wed Oct 20 21:08:03 2010 +0200 +++ b/src/proto.nacltai.c Sat Dec 04 03:01:46 2010 +0100 @@ -141,7 +141,7 @@ } len -= overhead; taia_unpack((char*)(enc + crypto_box_BOXZEROBYTES - noncelength), &d->cdtaic); - if (d->cdtaic.sec.x <= d->cdtaip.sec.x || d->cdtaic.nano <= d->cdtaip.nano || d->cdtaic.atto <= d->cdtaip.atto) { + if (d->cdtaic.sec.x <= d->cdtaip.sec.x && d->cdtaic.nano <= d->cdtaip.nano && d->cdtaic.atto <= d->cdtaip.atto) { fprintf(stderr, "Timestamp going back, ignoring packet\n"); return 0; }