diff options
Diffstat (limited to 'scan_ldapsearchrequest.c')
-rw-r--r-- | scan_ldapsearchrequest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scan_ldapsearchrequest.c b/scan_ldapsearchrequest.c index 8b685bf..94163db 100644 --- a/scan_ldapsearchrequest.c +++ b/scan_ldapsearchrequest.c @@ -3,7 +3,7 @@ size_t scan_ldapsearchrequest(const char* src,const char* max, struct SearchRequest* s) { - size_t res,tmp; + size_t res,tmp,elen; unsigned long etmp; signed long ltmp; s->attributes=0; @@ -24,10 +24,10 @@ size_t scan_ldapsearchrequest(const char* src,const char* max, if (!(tmp=scan_ldapsearchfilter(src+res,max,&s->filter))) goto error; res+=tmp; /* now for the attributelist */ - if (!(tmp=scan_asn1SEQUENCE(src+res,max,&etmp))) goto error; + if (!(tmp=scan_asn1SEQUENCE(src+res,max,&elen))) goto error; res+=tmp; { - const char* nmax=src+res+etmp; + const char* nmax=src+res+elen; //#define nmax max struct AttributeDescriptionList** a=&s->attributes; if (nmax>max) goto error; |