summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2008-09-04 14:54:22 +0000
committerdfr <dfr@FreeBSD.org>2008-09-04 14:54:22 +0000
commitae590ad889f1c382c39f6763ef5ef77fd55dd386 (patch)
tree105b5253220648584c7e2cc596dbf1dcea17dd53 /lib
parentb5bc5d965b31aaa60d65da0a9a05d14caf3a7fde (diff)
downloadFreeBSD-src-ae590ad889f1c382c39f6763ef5ef77fd55dd386.zip
FreeBSD-src-ae590ad889f1c382c39f6763ef5ef77fd55dd386.tar.gz
Fix an off-by-one error in the replay detection logic.
Diffstat (limited to 'lib')
-rw-r--r--lib/librpcsec_gss/svc_rpcsec_gss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librpcsec_gss/svc_rpcsec_gss.c b/lib/librpcsec_gss/svc_rpcsec_gss.c
index ad9adcf..acafa09 100644
--- a/lib/librpcsec_gss/svc_rpcsec_gss.c
+++ b/lib/librpcsec_gss/svc_rpcsec_gss.c
@@ -883,7 +883,7 @@ svc_rpc_gss_check_replay(struct svc_rpc_gss_client *client, uint32_t seq)
u_int32_t offset;
int word, bit;
- if (seq < client->cl_seqlast) {
+ if (seq <= client->cl_seqlast) {
/*
* The request sequence number is less than
* the largest we have seen so far. If it is
OpenPOWER on IntegriCloud