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:
@@ -11,9 +11,11 @@ size_t scan_ldapsearchrequest(const char* src,const char* max,
|
||||
s->filter=0;
|
||||
if (!(res=scan_ldapstring(src,max,&s->baseObject))) goto error;
|
||||
if (!(tmp=scan_asn1ENUMERATED(src+res,max,&etmp))) goto error;
|
||||
if (etmp>2) goto error; s->scope=etmp; res+=tmp;
|
||||
if (etmp>2) goto error;
|
||||
s->scope=etmp; res+=tmp;
|
||||
if (!(tmp=scan_asn1ENUMERATED(src+res,max,&etmp))) goto error;
|
||||
if (etmp>3) goto error; s->derefAliases=etmp; res+=tmp;
|
||||
if (etmp>3) goto error;
|
||||
s->derefAliases=etmp; res+=tmp;
|
||||
if (!(tmp=scan_asn1INTEGER(src+res,max,<mp)) || ltmp<0) goto error;
|
||||
s->sizeLimit=(unsigned long)ltmp;
|
||||
res+=tmp;
|
||||
|
||||
Reference in New Issue
Block a user