summaryrefslogtreecommitdiff
path: root/src/libs6/s6_fdholder_getdump.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-06-11 07:54:20 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-06-11 07:54:20 +0000
commit9cc5f3b25284ddca50ad1a19a83b1d1153dc9f5d (patch)
treea69980dd79d377903d154ead7cb43be32791d872 /src/libs6/s6_fdholder_getdump.c
parent921e08985b67eedc07e5626ade3197b870c18cc1 (diff)
downloads6-9cc5f3b25284ddca50ad1a19a83b1d1153dc9f5d.tar.xz
Remove a comparison to shut gcc up
Diffstat (limited to 'src/libs6/s6_fdholder_getdump.c')
-rw-r--r--src/libs6/s6_fdholder_getdump.c2
1 files changed, 1 insertions, 1 deletions
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 ;