From 9cc5f3b25284ddca50ad1a19a83b1d1153dc9f5d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 11 Jun 2015 07:54:20 +0000 Subject: Remove a comparison to shut gcc up --- src/libs6/s6_fdholder_getdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libs6') diff --git a/src/libs6/s6_fdholder_getdump.c b/src/libs6/s6_fdholder_getdump.c index f464546..9feba3e 100644 --- a/src/libs6/s6_fdholder_getdump.c +++ b/src/libs6/s6_fdholder_getdump.c @@ -45,7 +45,7 @@ int s6_fdholder_getdump (s6_fdholder_t *a, genalloc *g, tain_t const *deadline, tain_unpack(m.s, &tab[i].limit) ; m.s += TAIN_PACK ; m.len -= TAIN_PACK + 1 ; thislen = *m.s++ ; - if (thislen > m.len - 1 || thislen > S6_FDHOLDER_ID_SIZE || m.s[thislen]) goto droperr ; + if (thislen > m.len - 1 || m.s[thislen]) goto droperr ; byte_copy(tab[i].id, thislen, m.s) ; byte_zero(tab[i].id + thislen, S6_FDHOLDER_ID_SIZE + 1 - thislen) ; m.s += (unsigned int)thislen + 1 ; m.len -= (unsigned int)thislen + 1 ; -- cgit v1.2.3