From e3806b35a212fc846f3a3e4b61090d9e6196cc1d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 19 Mar 2014 14:35:19 +0100 Subject: Fixed compilation warnings about pointer mismatch on 32bit --- scan_ldapsearchrequest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scan_ldapsearchrequest.c') 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; -- cgit v1.2.3-55-g7522