fix two bugs in the indexing code found by Georg Lehner

silence if statement indentation warnings (gcc has become more picky)
This commit is contained in:
leitner
2017-02-25 08:40:23 +00:00
parent eb8bf7c2ac
commit 6ef84457cc
13 changed files with 53 additions and 23 deletions

View File

@@ -40,7 +40,8 @@ size_t scan_ldapmodifyrequest(const char* src,const char* max,struct ModifyReque
if (!(tmp=scan_asn1SEQUENCE(src+res,max,&islen))) goto error;
res+=tmp;
if (!(tmp=scan_asn1ENUMERATED(src+res,max,&etmp))) goto error;
if (etmp>2) goto error; last->operation=etmp; res+=tmp;
if (etmp>2) goto error;
last->operation=etmp; res+=tmp;
{
size_t iislen; /* urgh, _three_ levels of indirection */
const char* imax;